mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
Update Go-Ethereum (#9157)
* update * tidy * fix * fix e2e * fix e2e * fix bad tx opts
This commit is contained in:
@@ -109,9 +109,13 @@ func main() {
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
txOps = bind.NewKeyedTransactor(privKey)
|
||||
txOps, err = bind.NewKeyedTransactorWithChainID(privKey, big.NewInt(1337))
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
txOps.Value = big.NewInt(0)
|
||||
txOps.GasLimit = 4000000
|
||||
txOps.Context = context.Background()
|
||||
// User inputs keystore json file, sign tx with keystore json
|
||||
} else {
|
||||
// #nosec - Inclusion of file via variable is OK for this tool.
|
||||
@@ -135,9 +139,13 @@ func main() {
|
||||
return err
|
||||
}
|
||||
|
||||
txOps = bind.NewKeyedTransactor(privKey.PrivateKey)
|
||||
txOps, err = bind.NewKeyedTransactorWithChainID(privKey.PrivateKey, big.NewInt(1337))
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
txOps.Value = big.NewInt(0)
|
||||
txOps.GasLimit = 4000000
|
||||
txOps.Context = context.Background()
|
||||
}
|
||||
|
||||
drain := txOps.From
|
||||
|
||||
@@ -85,9 +85,13 @@ func main() {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
txOps = bind.NewKeyedTransactor(privKey)
|
||||
txOps, err = bind.NewKeyedTransactorWithChainID(privKey, big.NewInt(1337))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
txOps.Value = big.NewInt(0)
|
||||
txOps.GasLimit = 4000000
|
||||
txOps.Context = context.Background()
|
||||
nonce, err := client.NonceAt(context.Background(), crypto.PubkeyToAddress(privKey.PublicKey), nil)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "could not get account nonce")
|
||||
@@ -109,9 +113,13 @@ func main() {
|
||||
return err
|
||||
}
|
||||
|
||||
txOps = bind.NewKeyedTransactor(privKey.PrivateKey)
|
||||
txOps, err = bind.NewKeyedTransactorWithChainID(privKey.PrivateKey, big.NewInt(1337))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
txOps.Value = big.NewInt(0)
|
||||
txOps.GasLimit = 4000000
|
||||
txOps.Context = context.Background()
|
||||
nonce, err := client.NonceAt(context.Background(), privKey.Address, nil)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user