mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 11:20:45 +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
|
Address() common.Address
|
||||||
CallValue() *uint256.Int
|
CallValue() *uint256.Int
|
||||||
CallInput() []byte
|
CallInput() []byte
|
||||||
|
ContractCode() []byte
|
||||||
}
|
}
|
||||||
|
|
||||||
// StateDB gives tracers access to the whole state.
|
// StateDB gives tracers access to the whole state.
|
||||||
|
|
|
||||||
|
|
@ -80,6 +80,11 @@ func (ctx *ScopeContext) CallInput() []byte {
|
||||||
return ctx.Contract.Input
|
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
|
// 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.
|
// the return byte-slice and an error if one occurred.
|
||||||
//
|
//
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue