You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to integrate Thala's contract which I have done thousands of time with other contracts.
This time I am experiencing a very weird behavior
When trying to execute the wrapped code I get:
vm_status: 'CONSTRAINT_NOT_SATISFIED',
Running directly with the contract works.
To reproduce
create a contract that uses thala's entry function:
module Test::Test {
use std::signer;
use aptos_framework::primary_fungible_store;
use aptos_framework::fungible_asset::FungibleAsset;
use aptos_framework::fungible_asset;
use aptos_framework::object::Object;
use std::option;
use aptos_framework::fungible_asset::Metadata;
use aptos_framework::coin;
useThalaSwapV2::pool as ThalaV2Pool;
useThalaSwapV2::coin_wrapper as ThalaV2PoolWrapper;
publicentryfunswap_thala_v2_weighted<X>(sender: &signer, pool: Object<ThalaV2Pool::Pool>, metadata: Object<Metadata>, u: u64, metadata2: Object<Metadata>, u2: u64) {
ThalaV2PoolWrapper::swap_exact_in_weighted<X>(sender, pool, metadata, u, metadata2, u2);
}
}
This error most likely indicates a runtime verification error where an internal consistency check in the VM for the given program failed. Are you running this on testnet or mainnet? If its testnet, are you able to check whether it succeeds on mainnet? Also have you compiled this code with --move-2 or --compiler v2? Thank you
This error most likely indicates a runtime verification error where an internal consistency check in the VM for the given program failed. Are you running this on testnet or mainnet? If its testnet, are you able to check whether it succeeds on mainnet? Also have you compiled this code with --move-2 or --compiler v2? Thank you
This is running on mainnet with move v1.
Contract is deploying successfully.
Interaction is failing.
./aptos --version
aptos 5.1.0
Update:
I've tried deploying to Mainnet with the following flags: --move-2 --compiler v2
and still getting same result in runtime.
🐛 Bug
Everything tested on Mainnet
I am trying to integrate Thala's contract which I have done thousands of time with other contracts.
This time I am experiencing a very weird behavior
When trying to execute the wrapped code I get:
vm_status: 'CONSTRAINT_NOT_SATISFIED',
Running directly with the contract works.
To reproduce
Interface:
address:
ThalaSwapV2 = "0x007730cd28ee1cdc9e999336cbc430f99e7c44397c0aa77516f6f23a78559bb5"
Attached two results, one directly with the contract, the second is using the wrapped contract.
Please notice how simple the wrapper is. its just forwarding the arguments to another function.
Swap Directly with Thala
Swap Wrapped
arguments for ease of debugging:
Expected result would be the same outcome with both flows.
Update (v2 compile not helping):
I've tried deploying to Mainnet with the following flags: --move-2 --compiler v2
and still getting same result in runtime.
The text was updated successfully, but these errors were encountered: