fix : borTx chainID (#1021)

This commit is contained in:
SHIVAM SHARMA 2023-10-04 12:22:08 +05:30 committed by GitHub
parent 2943db974d
commit d233e4f869
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2021,6 +2021,7 @@ func (s *TransactionAPI) GetTransactionByHash(ctx context.Context, hash common.H
// newRPCTransaction calculates hash based on RLP of the transaction data. // newRPCTransaction calculates hash based on RLP of the transaction data.
// In case of bor block tx, we need simple derived tx hash (same as function argument) instead of RLP hash // In case of bor block tx, we need simple derived tx hash (same as function argument) instead of RLP hash
resultTx.Hash = hash resultTx.Hash = hash
resultTx.ChainID = nil
} }
return resultTx, nil return resultTx, nil