Although the problem arises with the TypeScript SDK for SUI Move, I believe it is a matter of incorrect input formatting. Pls consider the snippet below:

tx.moveCall({ target: `${packageId}::kiosk::place`, arguments: [tx.object(kioskId), tx.object(kcapId), tx.object(itemId)], //typeArguments: [itemType], /// DOES NOT WORK /// typeArguments: ["0x0d3f040edd345b0bf9fa3fd4ee19458a20a7db1d9abe534b02da4e8d47a1f119::kiosk::Item"], /// WORKS !!! /// });

As you can see, when I input the typeArgument explicitly inside double quotes it works. However when I declare a const itemType with the same value it does not work and raises the error

return nameOrType.includes(NAME_SEPARATOR) TypeError: Cannot read properties of undefined (reading 'includes')

Any ideas?

TheodorosNikoleris's user avatar

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.