-
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: multisig support call invoke contract #11743
base: master
Are you sure you want to change the base?
Conversation
Thanks for the PR @go-lifei ! Could you base your PR on the master branch, instead of the |
This is a bit too magical for my liking, and it'll break any users who are manually cbor-encoding their multisig parameters. Maybe we could allow the user to pass the literal string invoke-evm (or evm-call?) instead of the method number? @rvagg any opinions here? |
yeah, branching just for that case and handling input differently is a bit quirky what's the workflow here that we're trying to solve for? how are you generating your parameters hex value today that you'd call this with? |
i used my local tool or code . lol. |
right, so is there a difficulty in cbor encoding the resultant bytes yourself before outputting as hex if this is coming from existing tooling? |
easy for me . but difficulty for any other customer. |
I'm not sure of the best course of action here tbh. I don't think we should break existing workflows that assume it needs to be cbor encoded before passing. Perhaps a new option ( |
I don't think a flag will work because the method number is currently a positional argument. We could add entirely new commands, but I expect we will eventually want to support contract deployment and other types of invocations, I'm concerned we will end up with a bunch of commands (propose, approve, cancel / call, create). |
OK, circling back to this, I think I like the original suggestion of adding a new way of specifying the message, instead of a number, allow for the string @go-lifei would you be OK adjusting this PR for that proposal? It'd mean adjusting the logic around the |
Related Issues
multi wallet call contract need encode evm params
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