Typemismatch error while trying to call "swap_a2b" function of CETUS protocol

Here’s the tx digest. zsoFt94pvGBQVvq54k7v4Qg1Q7EN1qMyCXxTNFvNbkv
Below is my TXB code

  tx.setGasBudget(1000000);
  tx.moveCall({
    target: `${publishedAt}::pool_script::swap_a2b`,
    arguments: [
      tx.pure(process.env.CETUS_CONTRACT_ADDR), //
      tx.pure(
        "0xb785e6eed355c1f8367c06d2b0cb9303ab167f8359a129bb003891ee54c6fce0"
      ),
      tx.makeMoveVec({
        objects: [
          tx.object(
            "0x278c016658478a5694ad4a7b03f367f01589d9b123f599a9bfb356613a2cd6da"
          ),
          // tx.object(
          //   "0x221d8536273338c8d2c54470f31de83ecd559c6b69f75f3248c4b2870aa0a480"
          // ),
        ],
      }),
      tx.pure.bool(true),
      tx.pure.u64(amount), // amount
      tx.pure.u64(10000000000000), // amount_limit
      tx.pure.u128(4295048016), // getDefaultSqrtPriceLimit, hardcode
      tx.pure("0x6"), // clock
    ],
    typeArguments: [suiAddr, suidengAddr],
  });
1 Like

I commented the second sui object as it gives me “no coin for gas” error when I include them all but I leave it for now, want to solve issues one by one. :slight_smile:

1 Like