@@ -2013,11 +2013,10 @@ func (s *TransactionAPI) GetTransactionReceiptsByBlockNumber(ctx context.Context
2013
2013
return nil , fmt .Errorf ("block %d not found" , blockNumber )
2014
2014
}
2015
2015
2016
- return ToTxReceipts (blockNumber , blockHash , receipts , block )
2016
+ return ToTxReceipts (s . b . ChainConfig (), blockNumber , blockHash , receipts , block )
2017
2017
}
2018
2018
2019
- func ToTxReceipts (blockNumber uint64 , blockHash common.Hash , receipts types.Receipts , block * types.Block ) ([]map [string ]interface {}, error ) {
2020
-
2019
+ func ToTxReceipts (config * params.ChainConfig , blockNumber uint64 , blockHash common.Hash , receipts types.Receipts , block * types.Block ) ([]map [string ]interface {}, error ) {
2021
2020
txs := block .Transactions ()
2022
2021
if len (txs ) != len (receipts ) {
2023
2022
return nil , fmt .Errorf ("txs length doesn't equal to receipts' length" )
@@ -2026,7 +2025,7 @@ func ToTxReceipts(blockNumber uint64, blockHash common.Hash, receipts types.Rece
2026
2025
txReceipts := make ([]map [string ]interface {}, 0 , len (txs ))
2027
2026
for idx , receipt := range receipts {
2028
2027
tx := txs [idx ]
2029
- signer := types .MakeSigner (s . b . ChainConfig () , block .Number (), block .Time ())
2028
+ signer := types .MakeSigner (config , block .Number (), block .Time ())
2030
2029
from , _ := types .Sender (signer , tx )
2031
2030
2032
2031
fields := map [string ]interface {}{
0 commit comments