We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
const ta = new TonApiClient() const pool = ta.open(Pool.createFromAddress(TON_USDT)); const estimatedSwapOut = await pool.getEstimatedSwapOut({ assetIn: Asset.native(), amountIn: toNano(1), });
Error: Not a cell: int at TupleReader.readCell
Problem only with TonApiClient, with TonClient4 all fine
The text was updated successfully, but these errors were encountered:
I've met the same issue
async getPoolAddress(provider, { poolType, assets, }) { const result = await provider.get('get_pool_address', [ { type: 'int', value: BigInt(poolType) }, { type: 'slice', cell: assets[0].toSlice().asCell() }, { type: 'slice', cell: assets[1].toSlice().asCell() }, ]); return result.stack.readAddress(); }
Sorry, something went wrong.
Unfortunately, the adapter is currently written only for TonClient, not for TonClient4, which is a limitation. As soon as I am free, I will expand it.
TonClient
TonClient4
No branches or pull requests
Problem only with TonApiClient, with TonClient4 all fine
The text was updated successfully, but these errors were encountered: