sui
sui copied to clipboard
Error reported using wallet address as string variable
Wallet address is passed in as the username parameter by default. The second parameter is the user name and is required to be of type string Following error occurs:
Error: Transaction failed with the following error. Encountered error when calling RpcTxnDataSerialize for a moveCall transaction for address 54fb68ff3d8b9003a55641756b819b4057d52978 for transaction {
"kind": "moveCall",
"data": {
"arguments": [
"0xcd33033708d7212668315177d0fb1ac2a96cf2a4",
"0x54fb68ff3d8b9003a55641756b819b4057d52978"
],
"function": "register_with_name",
"gasBudget": 10000,
"module": "user",
"packageObjectId": "0xd738deed998cdbd22ef8a87f875b16f03146e871",
"typeArguments": []
}
}: Error: RPC Error: ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: EntryArgumentError(EntryArgumentError { argument_idx: 1, kind: TypeMismatch }), source: Some("Unexpected non-UTF8 value (outside of UTF8 character range) in argument 1") } }
Change the wallet address to any of the English names and no error is reported. Why? Because strings starting with 0x will be recognised as wallet addresses by default? But I want to use the wallet address as the username string variable, can't I?
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.