-
Notifications
You must be signed in to change notification settings - Fork 131
fix: non-eip-155 tx panic when get signer #282
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
Conversation
|
seems there's chain id check in legacy tx |
treat |
|
I think passing tx.ChainID to LatestSignerForChainID is not safe, we should pass the current network chainID to it. |
|
@yihuang What makes you say it's not safe? Seems like evm/ante/evm/05_signature_verification.go Lines 73 to 84 in 32be4de
|
I mean, normally the signer will recover sender from signature and check |
|
Ah, I think you're right. Feel free to add that change in this PR or open a new one if that makes more sense. I also don't think it'll cause any issues now, though. |
cyclic import if try to |
zsystm
left a comment
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.
LGTM.
* fix: non-eip-155 tx panic when get signer Closes: cosmos#280 * treat zero chainID differently * fix zero check * fix comment * fix conditon
* fix: non-eip-155 tx panic when get signer (#282) * fix: non-eip-155 tx panic when get signer Closes: #280 * treat zero chainID differently * fix zero check * fix comment * fix conditon * Update api/cosmos/evm/vm/v1/msg.go Co-authored-by: mmsqe <tqd0800210105@gmail.com> --------- Co-authored-by: mmsqe <tqd0800210105@gmail.com>
* fix: non-eip-155 tx panic when get signer Closes: cosmos#280 * treat zero chainID differently * fix zero check * fix comment * fix conditon
* fix: non-eip-155 tx panic when get signer (cosmos#282) * fix: non-eip-155 tx panic when get signer Closes: cosmos#280 * treat zero chainID differently * fix zero check * fix comment * fix conditon * Update api/cosmos/evm/vm/v1/msg.go Co-authored-by: mmsqe <tqd0800210105@gmail.com> --------- Co-authored-by: mmsqe <tqd0800210105@gmail.com>
Closes: #280
Description
Closes: #XXXX
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
mainbranchReviewers Checklist
All items are required.
Please add a note if the item is not applicable
and please add your handle next to the items reviewed
if you only reviewed selected items.
I have...
Unreleasedsection inCHANGELOG.md