mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
add public methods
This commit is contained in:
parent
fc454d0e33
commit
acb98d2c66
1 changed files with 15 additions and 0 deletions
|
|
@ -697,3 +697,18 @@ func (evm *EVM) GetVMContext() *tracing.VMContext {
|
||||||
StateDB: evm.StateDB,
|
StateDB: evm.StateDB,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ReadOnly returns whether the EVM is in staticcall mode
|
||||||
|
func (evm *EVM) ReadOnly() bool {
|
||||||
|
return evm.readOnly
|
||||||
|
}
|
||||||
|
|
||||||
|
// ReturnData returns the return data from the last call
|
||||||
|
func (evm *EVM) ReturnData() []byte {
|
||||||
|
return evm.returnData
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetReturnData sets the return data for subsequent calls
|
||||||
|
func (evm *EVM) SetReturnData(data []byte) {
|
||||||
|
evm.returnData = data
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue