fix: replace single quotes with '' value #1019
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Fixes a bug where mission contributions had unescaped single quotes, leading to a query syntax error. This fix just replaces all solo single quotes with two single quotes.
Details
Here's a tx that failed to the workd
they're
: https://tableland.network/api/v1/receipt/42161/0x879420e20419660251d60e31afa148f1bf61c6cdb0173104addde7dd99494871The fix santizes the values before calling the smart contract:
How it was tested
Here's a testnet tx that succeeds with the fix & the word
they're
converted tothey''re
: https://mumbai.polygonscan.com/tx/0x4456d2f50ca1c83492ce1f6755389bf8d4224fc384a0638bee57460500b45d19