sui icon indicating copy to clipboard operation
sui copied to clipboard

Error reported using wallet address as string variable

Open e274426380 opened this issue 2 years ago • 1 comments

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?

e274426380 avatar Dec 14 '22 08:12 e274426380

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.

github-actions[bot] avatar Feb 13 '23 02:02 github-actions[bot]