-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix batch tx send encoding #11500
Fix batch tx send encoding #11500
Changes from 7 commits
3533802
6cfd636
9a344d1
fee5ee9
c01b243
6f4e4dc
fc715bb
cd63e08
839b06c
bab739a
a23125c
07994cc
0fc4c3d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,10 +77,14 @@ func (c *evmTxmClient) BatchSendTransactions( | |
// convert to tx for logging purposes - exits early if error occurs | ||
tx, signedErr := GetGethSignedTx(attempts[i].SignedRawTx) | ||
if signedErr != nil { | ||
processingErr[i] = fmt.Errorf("failed to process tx (index %d): %w", i, signedErr) | ||
signedErrMsg := fmt.Sprintf("failed to process tx (index %d)", i) | ||
lggr.Errorw(signedErrMsg, "err", signedErr) | ||
processingErr[i] = fmt.Errorf("%s: %w", signedErrMsg, signedErr) | ||
return | ||
} | ||
codes[i], txErrs[i] = client.ClassifySendError(reqs[i].Error, lggr, tx, attempts[i].Tx.FromAddress, c.client.IsL2()) | ||
sendErr := reqs[i].Error | ||
codes[i] = client.ClassifySendError(sendErr, lggr, tx, attempts[i].Tx.FromAddress, c.client.IsL2()) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what scenarios can the attempt.FromAddress differ from the tx.FromAddress? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we're just resorting to getting the from address from the attempt here because you can't get it through the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sorry didnt see you previous message :) |
||
txErrs[i] = sendErr | ||
}(index) | ||
} | ||
wg.Wait() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice cleanup here :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
out of curiosity is there any reason we dont grab the
fromAddress
from thetx
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question. I think it's because this
Transaction
type isn't our internal one but thego-ethereum
one which doesn't expose the from address.