This commit is contained in:
vahoo5 2023-05-22 13:26:47 +02:00
parent c2fb703b76
commit cc7ae16365

View file

@ -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)
}
to := "0x"
logs := receipt.Logs
if logs == nil {
logs = []*types.Log{}
}
jsonResult := map[string]interface{}{
"txHash": txHash,
"gasUsed": receipt.GasUsed,
"toAddress": to,
"logs": logs,
}
totalGasUsed += receipt.GasUsed
if result.Err != nil {