mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-08 22:14:29 +00:00
parent
ec78122a31
commit
f744e86dd7
2 changed files with 6 additions and 0 deletions
|
|
@ -34,6 +34,7 @@ type OpContext interface {
|
|||
Address() common.Address
|
||||
CallValue() *uint256.Int
|
||||
CallInput() []byte
|
||||
ContractCode() []byte
|
||||
}
|
||||
|
||||
// StateDB gives tracers access to the whole state.
|
||||
|
|
|
|||
|
|
@ -80,6 +80,11 @@ func (ctx *ScopeContext) CallInput() []byte {
|
|||
return ctx.Contract.Input
|
||||
}
|
||||
|
||||
// ContractCode returns the code of the contract being executed.
|
||||
func (ctx *ScopeContext) ContractCode() []byte {
|
||||
return ctx.Contract.Code
|
||||
}
|
||||
|
||||
// Run loops and evaluates the contract's code with the given input data and returns
|
||||
// the return byte-slice and an error if one occurred.
|
||||
//
|
||||
|
|
|
|||
Loading…
Reference in a new issue