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
3aea432b
Unverified
Commit
3aea432b
authored
Jul 27, 2021
by
Marius van der Wijden
Committed by
GitHub
Jul 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
accounts/abi/bind: set Context in TransactOpts (#23188)
parent
b20bc5c0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
auth.go
accounts/abi/bind/auth.go
+6
-0
No files found.
accounts/abi/bind/auth.go
View file @
3aea432b
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
package
bind
package
bind
import
(
import
(
"context"
"crypto/ecdsa"
"crypto/ecdsa"
"errors"
"errors"
"io"
"io"
...
@@ -74,6 +75,7 @@ func NewKeyStoreTransactor(keystore *keystore.KeyStore, account accounts.Account
...
@@ -74,6 +75,7 @@ func NewKeyStoreTransactor(keystore *keystore.KeyStore, account accounts.Account
}
}
return
tx
.
WithSignature
(
signer
,
signature
)
return
tx
.
WithSignature
(
signer
,
signature
)
},
},
Context
:
context
.
Background
(),
},
nil
},
nil
}
}
...
@@ -97,6 +99,7 @@ func NewKeyedTransactor(key *ecdsa.PrivateKey) *TransactOpts {
...
@@ -97,6 +99,7 @@ func NewKeyedTransactor(key *ecdsa.PrivateKey) *TransactOpts {
}
}
return
tx
.
WithSignature
(
signer
,
signature
)
return
tx
.
WithSignature
(
signer
,
signature
)
},
},
Context
:
context
.
Background
(),
}
}
}
}
...
@@ -133,6 +136,7 @@ func NewKeyStoreTransactorWithChainID(keystore *keystore.KeyStore, account accou
...
@@ -133,6 +136,7 @@ func NewKeyStoreTransactorWithChainID(keystore *keystore.KeyStore, account accou
}
}
return
tx
.
WithSignature
(
signer
,
signature
)
return
tx
.
WithSignature
(
signer
,
signature
)
},
},
Context
:
context
.
Background
(),
},
nil
},
nil
}
}
...
@@ -156,6 +160,7 @@ func NewKeyedTransactorWithChainID(key *ecdsa.PrivateKey, chainID *big.Int) (*Tr
...
@@ -156,6 +160,7 @@ func NewKeyedTransactorWithChainID(key *ecdsa.PrivateKey, chainID *big.Int) (*Tr
}
}
return
tx
.
WithSignature
(
signer
,
signature
)
return
tx
.
WithSignature
(
signer
,
signature
)
},
},
Context
:
context
.
Background
(),
},
nil
},
nil
}
}
...
@@ -170,5 +175,6 @@ func NewClefTransactor(clef *external.ExternalSigner, account accounts.Account)
...
@@ -170,5 +175,6 @@ func NewClefTransactor(clef *external.ExternalSigner, account accounts.Account)
}
}
return
clef
.
SignTx
(
account
,
transaction
,
nil
)
// Clef enforces its own chain id
return
clef
.
SignTx
(
account
,
transaction
,
nil
)
// Clef enforces its own chain id
},
},
Context
:
context
.
Background
(),
}
}
}
}
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