-
Discord user IDNo response Describe your question in detail.My package compiles passes all tests, but when I attempt to publish, I'm getting an error
when I try to publish to Aptos devnet. I have two files, The package is at https://github.com/movementlabsxyz/movement/tree/main/protocol-units/bridge/move-modules if you'd like to clone it and try for yourself. Here's the full code of the module that I think the error is likely originating from, with tests commented out. If anyone with sharper eyes than me can see where there may be a only 1 argument passed when 2 should be expected, I'd appreciate it. I've been going through each function and haven't pinpointed it yet. Update: It appears to be an issue in
What error, if any, are you getting?
What have you tried or looked at? Or how can we reproduce the error?I've tried commenting parts of the Which operating system are you using?macOS Which SDK or tool are you using? (if any)Aptos CLI Describe your environment or tooling in detailNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The problem resides in your "init_module" function, when you publish a package, this function executes automatically. In your case, it reads only one signature, which is the deployer's. However, your function requires two inputs (two signer references). |
Beta Was this translation helpful? Give feedback.
The problem resides in your "init_module" function, when you publish a package, this function executes automatically. In your case, it reads only one signature, which is the deployer's. However, your function requires two inputs (two signer references).
You can try running tests on that function and you'll be able to reproduce the error.
Also, keep in mind that you can input only one signer ref and not two.