Skip to content

Commit d010f96

Browse files
committed
accounts/abi/bind: refactor transact method (ethereum#23719)
1 parent 96f18f5 commit d010f96

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

accounts/abi/bind/base.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"strings"
2525
"sync"
2626

27-
"github.com/XinFinOrg/XDPoSChain"
27+
ethereum "github.com/XinFinOrg/XDPoSChain"
2828
"github.com/XinFinOrg/XDPoSChain/accounts/abi"
2929
"github.com/XinFinOrg/XDPoSChain/common"
3030
"github.com/XinFinOrg/XDPoSChain/core/types"
@@ -164,7 +164,7 @@ func (c *BoundContract) Call(opts *CallOpts, results *[]interface{}, method stri
164164
return err
165165
}
166166
var (
167-
msg = XDPoSChain.CallMsg{From: opts.From, To: &c.address, Data: input, GasPrice: common.MinGasPrice50x, Gas: uint64(4200000)}
167+
msg = ethereum.CallMsg{From: opts.From, To: &c.address, Data: input, GasPrice: common.MinGasPrice50x, Gas: uint64(4200000)}
168168
ctx = ensureContext(opts.Context)
169169
code []byte
170170
output []byte
@@ -339,7 +339,7 @@ func (c *BoundContract) estimateGasLimit(opts *TransactOpts, contract *common.Ad
339339
return 0, ErrNoCode
340340
}
341341
}
342-
msg := XDPoSChain.CallMsg{
342+
msg := ethereum.CallMsg{
343343
From: opts.From,
344344
To: contract,
345345
GasPrice: gasPrice,
@@ -420,7 +420,7 @@ func (c *BoundContract) FilterLogs(opts *FilterOpts, name string, query ...[]int
420420
// Start the background filtering
421421
logs := make(chan types.Log, 128)
422422

423-
config := XDPoSChain.FilterQuery{
423+
config := ethereum.FilterQuery{
424424
Addresses: []common.Address{c.address},
425425
Topics: topics,
426426
FromBlock: new(big.Int).SetUint64(opts.Start),
@@ -466,7 +466,7 @@ func (c *BoundContract) WatchLogs(opts *WatchOpts, name string, query ...[]inter
466466
// Start the background filtering
467467
logs := make(chan types.Log, 128)
468468

469-
config := XDPoSChain.FilterQuery{
469+
config := ethereum.FilterQuery{
470470
Addresses: []common.Address{c.address},
471471
Topics: topics,
472472
}

0 commit comments

Comments
 (0)