@@ -657,7 +657,7 @@ func (api *BlockChainAPI) GetBlockReceipts(ctx context.Context, blockNrOrHash rp
657657 if err != nil {
658658 return nil , err
659659 }
660- result [i ] = MarshalReceipt (receipt , block .Hash (), block .NumberU64 (), signer , txs [i ], uint64 ( i ) , api .b .ChainConfig (), header , blockMetadata )
660+ result [i ] = MarshalReceipt (receipt , block .Hash (), block .NumberU64 (), signer , txs [i ], i , api .b .ChainConfig (), header , blockMetadata )
661661 }
662662 return result , nil
663663}
@@ -1758,11 +1758,11 @@ func (api *TransactionAPI) GetTransactionReceipt(ctx context.Context, hash commo
17581758 if err != nil {
17591759 return nil , err
17601760 }
1761- return MarshalReceipt (receipt , blockHash , blockNumber , signer , tx , index , api .b .ChainConfig (), header , blockMetadata ), nil
1761+ return MarshalReceipt (receipt , blockHash , blockNumber , signer , tx , int ( index ) , api .b .ChainConfig (), header , blockMetadata ), nil
17621762}
17631763
17641764// MarshalReceipt marshals a transaction receipt into a JSON object.
1765- func MarshalReceipt (receipt * types.Receipt , blockHash common.Hash , blockNumber uint64 , signer types.Signer , tx * types.Transaction , txIndex uint64 , chainConfig * params.ChainConfig , header * types.Header , blockMetadata common.BlockMetadata ) map [string ]interface {} {
1765+ func MarshalReceipt (receipt * types.Receipt , blockHash common.Hash , blockNumber uint64 , signer types.Signer , tx * types.Transaction , txIndex int , chainConfig * params.ChainConfig , header * types.Header , blockMetadata common.BlockMetadata ) map [string ]interface {} {
17661766 from , _ := types .Sender (signer , tx )
17671767
17681768 fields := map [string ]interface {}{
@@ -2062,7 +2062,7 @@ func (api *TransactionAPI) SendRawTransactionSync(ctx context.Context, input hex
20622062 rs [i ].BlockNumber .Uint64 (),
20632063 signer ,
20642064 txs [i ],
2065- uint64 (rs [i ].TransactionIndex ),
2065+ int (rs [i ].TransactionIndex ),
20662066 api .b .ChainConfig (),
20672067 header ,
20682068 blockMetadata ,
0 commit comments