Skip to content

Commit

Permalink
added CallFuncFactory.Value (#156)
Browse files Browse the repository at this point in the history
Co-authored-by: lmittmann <[email protected]>
  • Loading branch information
lmittmann and lmittmann authored Jun 16, 2024
1 parent 8ab4472 commit afcdc83
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions module/eth/call.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ func (f *CallFuncFactory) Returns(returns ...any) w3types.RPCCaller {
return f
}

func (f *CallFuncFactory) Value(value *big.Int) *CallFuncFactory {
f.msg.Value = value
return f
}

func (f *CallFuncFactory) AtBlock(blockNumber *big.Int) *CallFuncFactory {
f.atBlock = blockNumber
return f
Expand Down

0 comments on commit afcdc83

Please sign in to comment.