diff --git a/e2e-polybft/e2e/jsonrpc_test.go b/e2e-polybft/e2e/jsonrpc_test.go index 7c645a7e78..1783a164b7 100644 --- a/e2e-polybft/e2e/jsonrpc_test.go +++ b/e2e-polybft/e2e/jsonrpc_test.go @@ -245,7 +245,7 @@ func TestE2E_JsonRPC(t *testing.T) { key1, err := crypto.GenerateECDSAKey() require.NoError(t, err) - txn := cluster.Transfer(t, senderKey, types.Address(key1.Address()), one) + txn := cluster.Transfer(t, senderKey, key1.Address(), one) require.NoError(t, txn.Wait()) require.True(t, txn.Succeed()) @@ -329,7 +329,7 @@ func TestE2E_JsonRPC(t *testing.T) { t.Run("eth_getBlockByHash", func(t *testing.T) { key1, err := crypto.GenerateECDSAKey() require.NoError(t, err) - txn := cluster.Transfer(t, senderKey, types.Address(key1.Address()), one) + txn := cluster.Transfer(t, senderKey, key1.Address(), one) require.NoError(t, txn.Wait()) require.True(t, txn.Succeed()) txReceipt := txn.Receipt() @@ -343,7 +343,7 @@ func TestE2E_JsonRPC(t *testing.T) { t.Run("eth_getBlockByNumber", func(t *testing.T) { key1, err := crypto.GenerateECDSAKey() require.NoError(t, err) - txn := cluster.Transfer(t, senderKey, types.Address(key1.Address()), one) + txn := cluster.Transfer(t, senderKey, key1.Address(), one) require.NoError(t, txn.Wait()) require.True(t, txn.Succeed()) txReceipt := txn.Receipt() @@ -357,7 +357,7 @@ func TestE2E_JsonRPC(t *testing.T) { t.Run("eth_getTransactionReceipt", func(t *testing.T) { key1, err := crypto.GenerateECDSAKey() require.NoError(t, err) - txn := cluster.Transfer(t, senderKey, types.Address(key1.Address()), one) + txn := cluster.Transfer(t, senderKey, key1.Address(), one) require.NoError(t, txn.Wait()) require.True(t, txn.Succeed()) @@ -391,7 +391,7 @@ func TestE2E_JsonRPC(t *testing.T) { require.NoError(t, err) // Test. We should be able to query the transaction by its hash - txn := cluster.Transfer(t, senderKey, types.Address(key1.Address()), one) + txn := cluster.Transfer(t, senderKey, key1.Address(), one) require.NoError(t, txn.Wait()) require.True(t, txn.Succeed())