-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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: delegated signatures: check every field of txs and roundtrip eth <-> FIL #10007
Conversation
Params: params, | ||
}, nil | ||
} | ||
|
||
func (tx *EthTxArgs) ToSignedMessage() (*types.SignedMessage, error) { |
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.
Oops, I didn't notice the method right after this one does the same thing. We'll need to either consolidate these methods or drop the new one before merging.
60204af
to
740a8dc
Compare
I'd like to write tests covering a lot of the edge-cases (eg. bad Version, bad params), but I'm not sure whether that should block landing this PR. |
740a8dc
to
b40a899
Compare
b40a899
to
3421e6a
Compare
return EthTxArgs{}, err | ||
return EthTxArgs{}, xerrors.Errorf("failed to read params byte array: %w", err) | ||
} | ||
|
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.
We need to assert that params
is non-empty here. Otherwise, this should have been a method send and someone pulled a fast one.
Related Issues
filecoin-project/ref-fvm#1433
Proposed Changes
Additional Info
Checklist
Before you mark the PR ready for review, please make sure that:
<PR type>: <area>: <change being made>
fix: mempool: Introduce a cache for valid signatures
PR type
: fix, feat, build, chore, ci, docs, perf, refactor, revert, style, testarea
, e.g. api, chain, state, market, mempool, multisig, networking, paych, proving, sealing, wallet, deps