Skip to content

Commit

Permalink
update interface ContractCaller and DeployBackend functions epoch par…
Browse files Browse the repository at this point in the history
…amter type
  • Loading branch information
wangdayong228 committed May 31, 2023
1 parent 352aaab commit c0434fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bind/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ var (
type ContractCaller interface {
// CodeAt returns the code of the given account. This is needed to differentiate
// between contract internal errors and the local chain being out of sync.
GetCode(address types.Address, epoch ...*types.Epoch) (code hexutil.Bytes, err error)
GetCode(address types.Address, epoch ...*types.EpochOrBlockHash) (hexutil.Bytes, error)
// ContractCall executes an Ethereum contract call with the specified data as the
// input.
Call(call types.CallRequest, epoch *types.Epoch) (result hexutil.Bytes, err error)
Call(request types.CallRequest, epoch *types.EpochOrBlockHash) (hexutil.Bytes, error)
}

// ContractTransactor defines the methods needed to allow operating with a contract
Expand Down Expand Up @@ -65,7 +65,7 @@ type ContractFilterer interface {
// DeployBackend wraps the operations needed by WaitMined and WaitDeployed.
type DeployBackend interface {
TransactionReceipt(txHash common.Hash) (*types.TransactionReceipt, error)
GetCode(address types.Address, epoch ...*types.Epoch) (code hexutil.Bytes, err error)
GetCode(address types.Address, epoch ...*types.EpochOrBlockHash) (hexutil.Bytes, error)
}

// ContractBackend defines the methods needed to work with contracts on a read-write basis.
Expand Down

0 comments on commit c0434fd

Please sign in to comment.