@@ -41,7 +41,7 @@ func (suite *BackendTestSuite) TestGetTransactionByHash() {
4141 },
4242 }
4343
44- rpcTransaction , _ := rpctypes .NewRPCTransaction (msgEthereumTx .AsTransaction (), common.Hash {}, 0 , 0 , big .NewInt (1 ))
44+ rpcTransaction , _ := rpctypes .NewRPCTransaction (msgEthereumTx .AsTransaction (), common.Hash {}, 0 , 0 , big .NewInt (1 ), suite . backend . chainID )
4545
4646 testCases := []struct {
4747 name string
@@ -123,7 +123,7 @@ func (suite *BackendTestSuite) TestGetTransactionByHash() {
123123
124124func (suite * BackendTestSuite ) TestGetTransactionsByHashPending () {
125125 msgEthereumTx , bz := suite .buildEthereumTx ()
126- rpcTransaction , _ := rpctypes .NewRPCTransaction (msgEthereumTx .AsTransaction (), common.Hash {}, 0 , 0 , big .NewInt (1 ))
126+ rpcTransaction , _ := rpctypes .NewRPCTransaction (msgEthereumTx .AsTransaction (), common.Hash {}, 0 , 0 , big .NewInt (1 ), suite . backend . chainID )
127127
128128 testCases := []struct {
129129 name string
@@ -183,7 +183,7 @@ func (suite *BackendTestSuite) TestGetTransactionsByHashPending() {
183183
184184func (suite * BackendTestSuite ) TestGetTxByEthHash () {
185185 msgEthereumTx , bz := suite .buildEthereumTx ()
186- rpcTransaction , _ := rpctypes .NewRPCTransaction (msgEthereumTx .AsTransaction (), common.Hash {}, 0 , 0 , big .NewInt (1 ))
186+ rpcTransaction , _ := rpctypes .NewRPCTransaction (msgEthereumTx .AsTransaction (), common.Hash {}, 0 , 0 , big .NewInt (1 ), suite . backend . chainID )
187187
188188 testCases := []struct {
189189 name string
@@ -299,6 +299,7 @@ func (suite *BackendTestSuite) TestGetTransactionByBlockAndIndex() {
299299 1 ,
300300 0 ,
301301 big .NewInt (1 ),
302+ suite .backend .chainID ,
302303 )
303304 testCases := []struct {
304305 name string
@@ -392,6 +393,7 @@ func (suite *BackendTestSuite) TestGetTransactionByBlockNumberAndIndex() {
392393 1 ,
393394 0 ,
394395 big .NewInt (1 ),
396+ suite .backend .chainID ,
395397 )
396398 testCases := []struct {
397399 name string
@@ -583,7 +585,8 @@ func (suite *BackendTestSuite) TestGetTransactionReceipt() {
583585
584586 db := dbm .NewMemDB ()
585587 suite .backend .indexer = indexer .NewKVIndexer (db , tmlog .NewNopLogger (), suite .backend .clientCtx )
586- err := suite .backend .indexer .IndexBlock (tc .block , tc .blockResult )
588+ err := suite .backend .indexer .IndexBlock (tc .block , tc .blockResult )
589+ suite .Require ().NoError (err )
587590
588591 txReceipt , err := suite .backend .GetTransactionReceipt (common .HexToHash (tc .tx .Hash ))
589592 if tc .expPass {
0 commit comments