aptos-labs / petra-wallet

Public issue tracker for Petra Wallet on Aptos
https://petra.app
87 stars 54 forks source link

CANNOT SIGN AND SUMMIT TRANSACTION WHICH TYPE module_bundle_payload #6

Closed william-web3 closed 1 year ago

william-web3 commented 1 year ago

Hi there,

I met a problem when trying to submit a transaction which is creating a coin on Aptos devnet using the Petra wallet extension.

There is the code: `const transaction: Types.TransactionPayload_ModuleBundlePayload = { type: "module_bundle_payload", modules: [ { bytecode: "0xa11ceb0b0500000009010006020604030a1b042504052924074d52089f01400adf01050ce40123000001010102000300000004000100000502010001040401010002070506000105070101000203040305060c0a020a0202030002060c0301080005060c0a020a02020101060c010503060c05030b637573746f6d5f636f696e0c6d616e616765645f636f696e067369676e65720a437573746f6d436f696e0a696e697469616c697a65046d696e740b64756d6d795f6669656c640a616464726573735f6f66d15fa3f056a9c8f16561a7e7b0d4d3baf878631d21f513846acf31138e2f4465000000000000000000000000000000000000000000000000000000000000000100020106010001040001070b000b010b020b03083800020101040001060a000b0011030b0138010200", abi: { address: account?.address || "", name: "public", friends: [], exposed_functions: [], structs: [], } }, ],

image
  };

const response = await signAndSubmitTransaction(transaction);`

For more information: Node 16.15.0 "@aptos-labs/wallet-adapter-react": "^0.2.4" "@martianwallet/aptos-wallet-adapter": "^0.0.3" "petra-plugin-wallet-adapter": "^0.1.3"

Thanks for reading

Tam78787 commented 1 year ago

Vào 13:13, CN, 12 thg 2, 2023 William Nguyen @.***> đã viết:

Closed #6 https://github.com/aptos-labs/petra-wallet/issues/6 as completed.

— Reply to this email directly, view it on GitHub https://github.com/aptos-labs/petra-wallet/issues/6#event-8497810575, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5BNNEDKB4EGVV2AJ4ARBV3WXB5PRANCNFSM6AAAAAAUZD2R2E . You are receiving this because you are subscribed to this thread.Message ID: @.***>