Skip to content

Commit cec1f29

Browse files
authored
mobile: add CallOpts.SetFrom (#20721)
This was missing because I forgot to wrap it when bind.CallOpts.From as added.
1 parent 4fabd9c commit cec1f29

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mobile/bind.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ func (opts *CallOpts) GetGasLimit() int64 { return 0 /* TODO(karalabe) */ }
6969
func (opts *CallOpts) SetPending(pending bool) { opts.opts.Pending = pending }
7070
func (opts *CallOpts) SetGasLimit(limit int64) { /* TODO(karalabe) */ }
7171
func (opts *CallOpts) SetContext(context *Context) { opts.opts.Context = context.context }
72+
func (opts *CallOpts) SetFrom(addr *Address) { opts.opts.From = addr.address }
7273

7374
// TransactOpts is the collection of authorization data required to create a
7475
// valid Ethereum transaction.

0 commit comments

Comments
 (0)