Skip to content

Commit 1336da7

Browse files
committed
add public methods
1 parent fc454d0 commit 1336da7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

core/vm/evm.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -697,3 +697,13 @@ func (evm *EVM) GetVMContext() *tracing.VMContext {
697697
StateDB: evm.StateDB,
698698
}
699699
}
700+
701+
// ReadOnly returns whether the EVM is in staticcall mode
702+
func (evm *EVM) ReadOnly() bool {
703+
return evm.readOnly
704+
}
705+
706+
// SetReturnData sets the return data for subsequent calls
707+
func (evm *EVM) SetReturnData(data []byte) {
708+
evm.returnData = data
709+
}

0 commit comments

Comments
 (0)