Skip to content

Commit

Permalink
Instantiate LondonOrBerlin signer in the TestCluster.SendTxn
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-Ethernal committed Feb 12, 2024
1 parent ef714fb commit 320966d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion e2e-polybft/framework/test-cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,8 @@ func (c *TestCluster) SendTxn(t *testing.T, sender *crypto.ECDSAKey, txn *types.
chainID, err := client.Eth().ChainID()
require.NoError(t, err)

signer := crypto.NewEIP155Signer(chainID.Uint64(), true)
signer := crypto.NewLondonOrBerlinSigner(chainID.Uint64(), true,
crypto.NewEIP155Signer(chainID.Uint64(), true))
signedTxn, err := signer.SignTxWithCallback(txn,
func(hash types.Hash) (sig []byte, err error) {
return sender.Sign(hash.Bytes())
Expand Down

0 comments on commit 320966d

Please sign in to comment.