Skip to content

Commit 518b14a

Browse files
committed
Move base fee parameter to end
1 parent 09fbe23 commit 518b14a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

hdwallet.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ func (w *Wallet) SignHash(account accounts.Account, hash []byte) ([]byte, error)
230230
}
231231

232232
// SignTxEIP155 implements accounts.Wallet, which allows the account to sign an ERC-20 transaction.
233-
func (w *Wallet) SignTxEIP155(account accounts.Account, tx *types.Transaction, baseFee, chainID *big.Int) (*types.Transaction, error) {
233+
func (w *Wallet) SignTxEIP155(account accounts.Account, tx *types.Transaction, chainID, baseFee *big.Int) (*types.Transaction, error) {
234234
w.stateLock.RLock() // Comms have own mutex, this is for the state fields
235235
defer w.stateLock.RUnlock()
236236

@@ -265,7 +265,7 @@ func (w *Wallet) SignTxEIP155(account accounts.Account, tx *types.Transaction, b
265265
}
266266

267267
// SignTx implements accounts.Wallet, which allows the account to sign an Ethereum transaction.
268-
func (w *Wallet) SignTx(account accounts.Account, tx *types.Transaction, baseFee, chainID *big.Int) (*types.Transaction, error) {
268+
func (w *Wallet) SignTx(account accounts.Account, tx *types.Transaction, chainID, baseFee *big.Int) (*types.Transaction, error) {
269269
w.stateLock.RLock() // Comms have own mutex, this is for the state fields
270270
defer w.stateLock.RUnlock()
271271

@@ -308,7 +308,7 @@ func (w *Wallet) SignHashWithPassphrase(account accounts.Account, passphrase str
308308

309309
// SignTxWithPassphrase implements accounts.Wallet, attempting to sign the given
310310
// transaction with the given account using passphrase as extra authentication.
311-
func (w *Wallet) SignTxWithPassphrase(account accounts.Account, passphrase string, tx *types.Transaction, baseFee, chainID *big.Int) (*types.Transaction, error) {
311+
func (w *Wallet) SignTxWithPassphrase(account accounts.Account, passphrase string, tx *types.Transaction, chainID, baseFee *big.Int) (*types.Transaction, error) {
312312
return w.SignTx(account, tx, baseFee, chainID)
313313
}
314314

hdwallet_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ func TestWallet(t *testing.T) {
187187
t.Error("expected match")
188188
}
189189

190-
signedTx3, err := wallet.SignTxEIP155(account, tx, big.NewInt(41), big.NewInt(42))
190+
signedTx3, err := wallet.SignTxEIP155(account, tx, big.NewInt(42), big.NewInt(10))
191191
if err != nil {
192192
t.Error(err)
193193
}

0 commit comments

Comments
 (0)