The `String` type is incorrectly sent to the smart contract
Closed this issue · 1 comments
StackOverflowExcept1on commented
Problem
I'm using gear-dapps/ping contract and for some reason idea.gear-tech.io
sends \u0010PING
instead of PING
. Since the contract is expecting a "PING" value, it doesn't reply to user
Steps
- open https://idea.gear-tech.io/programs/0x0cd68a835cbeb9037edde7f60da6b26286a48e886e8ef0b7f1346dbc7c39d7a8?node=wss%3A%2F%2Frpc-node.gear-tech.io%3A443
- press "send message"
- type "PING" (w/o quotes into payload:Str field)
- calculate gas for message
- send message to queue
- open https://idea.gear-tech.io/state/full/0x0cd68a835cbeb9037edde7f60da6b26286a48e886e8ef0b7f1346dbc7c39d7a8?node=wss%3A%2F%2Frpc-node.gear-tech.io%3A443 to read full state of smart contract (There will be a list of incorrectly encoded strings. In Some cases string starts from
\u0010
and@
)
Possible Solution
No response
Notes
No response
Relevant Log Output
No response
osipov-mit commented
Hi @StackOverflowExcept1on! ping contract has been updated and now works properly