From 99b879d014d0037cf3bf47c70de740b9ac366b81 Mon Sep 17 00:00:00 2001 From: Aayush Date: Tue, 31 Jan 2023 12:49:04 -0500 Subject: [PATCH] Add test for EthGetTransactionByHash --- itests/eth_transactions_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/itests/eth_transactions_test.go b/itests/eth_transactions_test.go index 0c8f1baa5..6ba63608a 100644 --- a/itests/eth_transactions_test.go +++ b/itests/eth_transactions_test.go @@ -83,6 +83,11 @@ func TestValueTransferValidSignature(t *testing.T) { // Success. require.EqualValues(t, ethtypes.EthUint64(0x1), receipt.Status) + + ethTx, err := client.EthGetTransactionByHash(ctx, &hash) + require.Nil(t, err) + require.EqualValues(t, ethAddr, ethTx.From) + } func TestLegacyTransaction(t *testing.T) {