I’m encountering an issue when publishing a Move contract on the Sui network (Testnet). The error occurs in the function 0x2::poseidon::poseidon_bn254_internal, with the following message:
st command aborted within function '0x0000000000000000000000000000000000000000000000000000000000000002::poseidon::poseidon_bn254_internal' at instruction 0 with code 1
Here’s the context:
-
Local Testing: The contract builds and tests successfully locally using sui move build and sui move test. No errors or warnings.
-
On-Chain: When I run sui client publish --gas-budget 100000000, it fails with the above error.
I’m wondering if anyone has successfully used 0x2::poseidon::poseidon_bn254_internal on-chain (e.g., Testnet or Devnet)? Could this be related to stricter parameter validation on-chain, a version mismatch with the standard library, or something else?
For reference:
-
Sui CLI version: 1.45.1
-
Network: Testnet
-
My contract calls poseidon_bn254_internal with a vector input (e.g., 32 bytes), and it works fine locally.
Any insights or suggestions would be greatly appreciated! If needed, I can share more details about my contract code or the full error log.
Thanks in advance!