updated output policy docs
This commit is contained in:
parent
7f8f0c5823
commit
6d3097ac9e
@ -283,11 +283,12 @@ pub enum ExtMode {
|
|||||||
Create
|
Create
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Wrapper structure for evm return data to avoid unnecessary copying.
|
/// Policy for handling output data on `RETURN` opcode.
|
||||||
pub enum OutputPolicy<'a> {
|
pub enum OutputPolicy<'a> {
|
||||||
/// Reference to fixed sized output of a message call.
|
/// Return reference to fixed sized output.
|
||||||
|
/// Used for message calls.
|
||||||
Return(&'a mut [u8]),
|
Return(&'a mut [u8]),
|
||||||
/// Use it, if you want return code to initialize contract.
|
/// Init new contract as soon as `RETURN` is called.
|
||||||
InitContract
|
InitContract
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user