Skip to content
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

bug: an error will be reported when executing the multi-signature command #20742

Open
lispking opened this issue Dec 27, 2024 · 5 comments
Open
Assignees
Labels
doc-issue Issue submitted using the Doc issue template

Comments

@lispking
Copy link
Contributor

lispking commented Dec 27, 2024

  1. Call the publish command to generate <TX_BYTES>.
  2. Executing according to the document will report an error when it comes to the last step.
$ sui client publish ${package} --serialize-unsigned-transaction
Raw tx_bytes to execute: <TX_BYTES>

$ sui client execute-signed-tx --tx-bytes <TX_BYTES> --signatures <SERIALIZED-MULTISIG>

[warning] Client/Server api version mismatch, client api version : 1.39.1, server api version : 1.39.3
RPC call failed: ErrorObject { code: ServerError(-32002), message: "Invalid user signature: Required Signature from 0xa0e9e2f2c4db22b37d7b61269aab4a42bfcad9eb51d5ca0329942b3d4bc327ab is absent [\"0x233215dd07c98701d5d8a2635b46786508201b06b630be6c9c2a94e55b7320da\"]", data: None }
@lispking lispking added the doc-issue Issue submitted using the Doc issue template label Dec 27, 2024
@stefan-mysten
Copy link
Contributor

Can you double check that indeed all signatures were included? Also, the multisig address is different than the active address that is set when executing a transaction, so you likely have to pay for gas from a different gas object, I think.

@lispking
Copy link
Contributor Author

I think it's a problem with the sui client command, because I've tried it dozens of times according to the documentation. The only difference is that it's applied in the publish scenario.

@stefan-mysten
Copy link
Contributor

stefan-mysten commented Dec 31, 2024

The documentation might be wrong too 😅

@stefan-mysten
Copy link
Contributor

Can you run the same tx bytes and multisig via GraphQL?

mutation {
  executeTransactionBlock(txBytes:"", signatures:"")
}

@lispking
Copy link
Contributor Author

Now a tool has been encapsulated using the TypeScript SDK, and it's much easier to use than the one in the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-issue Issue submitted using the Doc issue template
Projects
None yet
Development

No branches or pull requests

3 participants