Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
c63c2d85
Commit
c63c2d85
authored
Jun 17, 2021
by
Nicolas Feignon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
accounts/abi/bind: call ensureContext on every context
parent
87a11a87
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
base.go
accounts/abi/bind/base.go
+3
-3
No files found.
accounts/abi/bind/base.go
View file @
c63c2d85
...
...
@@ -229,13 +229,13 @@ func (c *BoundContract) transact(opts *TransactOpts, contract *common.Address, i
if
opts
.
GasPrice
!=
nil
&&
(
opts
.
GasFeeCap
!=
nil
||
opts
.
GasTipCap
!=
nil
)
{
return
nil
,
errors
.
New
(
"both gasPrice and (maxFeePerGas or maxPriorityFeePerGas) specified"
)
}
head
,
err
:=
c
.
transactor
.
HeaderByNumber
(
opts
.
Context
,
nil
)
head
,
err
:=
c
.
transactor
.
HeaderByNumber
(
ensureContext
(
opts
.
Context
)
,
nil
)
if
err
!=
nil
{
return
nil
,
err
}
if
head
.
BaseFee
!=
nil
&&
opts
.
GasPrice
==
nil
{
if
opts
.
GasTipCap
==
nil
{
tip
,
err
:=
c
.
transactor
.
SuggestGasTipCap
(
opts
.
Context
)
tip
,
err
:=
c
.
transactor
.
SuggestGasTipCap
(
ensureContext
(
opts
.
Context
)
)
if
err
!=
nil
{
return
nil
,
err
}
...
...
@@ -256,7 +256,7 @@ func (c *BoundContract) transact(opts *TransactOpts, contract *common.Address, i
return
nil
,
errors
.
New
(
"maxFeePerGas or maxPriorityFeePerGas specified but london is not active yet"
)
}
if
opts
.
GasPrice
==
nil
{
price
,
err
:=
c
.
transactor
.
SuggestGasTipCap
(
opts
.
Context
)
price
,
err
:=
c
.
transactor
.
SuggestGasTipCap
(
ensureContext
(
opts
.
Context
)
)
if
err
!=
nil
{
return
nil
,
err
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment