I am trying to create a simple NFT with the code below:
module ptb::name;
use std::string::{Self, String};
public struct Item has key, store {
id: UID,
name: String,
}
public entry fun mint(
name: vector<u8>,
ctx: &mut TxContext) {
let item = Item {
id: object::new(ctx),
name: string::utf8(name),
};
transfer::public_transfer(item, tx_context::sender(ctx));
}
export PACKAGE=<Package ID>
sui client ptb \
--move-call $PACKAGE::name::mint "toulis"
I get the following error (regardless if the string input is unquoted, in single or double quotes):
Encountered error when building PTB:
× Error when processing PTB
╭────
1 │ --move-call 0x86f9a0b4f5d150a0697de655386f68e3e34e7915f42b5f5cf826501965f4d5f6::name::mint pikachu
· ───┬───
· ╰── Unresolved identifier: 'pikachu'
╰────
help: Did you mean 'brave-topaz'?
Any ideas on how to input a string with the PTB CLI?
Thank you