Add test for EthGetTransactionByHash

This commit is contained in:
Aayush 2023-01-31 12:49:04 -05:00
parent dcbfca53d9
commit 99b879d014

View File

@ -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) {