pub enum BytecodeCompilationResult {
Success {
bytes: Vec<u8>,
warnings: Vec<CompileWarning>,
},
Library {
warnings: Vec<CompileWarning>,
},
Failure {
warnings: Vec<CompileWarning>,
errors: Vec<CompileError>,
},
}
Expand description
Represents the result of compiling Sway code via compile_to_bytecode. Contains the compiled bytecode in byte form, or resulting errors, and any warnings generated.
Variants
Success
Library
Fields
warnings: Vec<CompileWarning>