mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
F
This commit is contained in:
parent
c2fb703b76
commit
cc7ae16365
1 changed files with 5 additions and 1 deletions
|
|
@ -1371,11 +1371,15 @@ func (s *BundleAPI) CallBundle(ctx context.Context, args CallBundleArgs) (map[st
|
||||||
return nil, fmt.Errorf("err: %w; txhash %s", err, randomHash)
|
return nil, fmt.Errorf("err: %w; txhash %s", err, randomHash)
|
||||||
}
|
}
|
||||||
to := "0x"
|
to := "0x"
|
||||||
|
logs := receipt.Logs
|
||||||
|
if logs == nil {
|
||||||
|
logs = []*types.Log{}
|
||||||
|
}
|
||||||
jsonResult := map[string]interface{}{
|
jsonResult := map[string]interface{}{
|
||||||
"txHash": txHash,
|
"txHash": txHash,
|
||||||
"gasUsed": receipt.GasUsed,
|
"gasUsed": receipt.GasUsed,
|
||||||
"toAddress": to,
|
"toAddress": to,
|
||||||
|
"logs": logs,
|
||||||
}
|
}
|
||||||
totalGasUsed += receipt.GasUsed
|
totalGasUsed += receipt.GasUsed
|
||||||
if result.Err != nil {
|
if result.Err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue