Skip to content

Invalid argument parsing for byte strings #2294

@mootz12

Description

@mootz12

What version are you using?

% stellar --version
stellar 23.2.0 (8c559e832fd969aa469784b66e70891fadf94f0a)
stellar-xdr 23.0.0 (e83a6337204ecfdb0ac0d44ffb857130c1249b1b)
xdr curr (4b7a2ef7931ab2ca2499be68d849f38190b443ca)

What did you do?

% stellar contract invoke --id test_contract --source test -- upgrade --new_wasm_hash 3e981b3b5170e8e08429813b01b4aae93effef93e9fc4b8d62ecd205279c23ee
❌ error: Invalid JSON in argument 'new_wasm_hash': number out of range at line 1 column 5

Received value: '3e981b3b5170e8e08429813b01b4aae93effef93e9fc4b8d62ecd205279c23ee'

Suggestions:
- Check for missing quotes around strings
- Ensure proper JSON syntax (commas, brackets, etc.)
- For complex objects, consider using --new_wasm_hash-file-path to load from a file

What did you expect to see?

The transaction to be successful

What did you see instead?

Errored on transaction creation

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions