String Input of three numbers (comma seperated) doesn't work in Remix

String Input of three numbers (comma seperated) doesn't work in Remix

Manage alerts

Loading saved threads...

Floari · External communityPost link
External question — Ethereum Stack Exchange Author: Floari Original post: https://ethereum.stackexchange.com/questions/70972 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. So when I try to put in three numbers as a String in a usual setter-method, it doesn't work. Does anybody know why? function test(string memory x) public view returns(string memory){ return x; } When I try: "1,2,3" I get an JSON Error, but when I try: "a,b,c" it does work perfect.
Quote
Report
blockbyblock · External communityPost link
External answer — Ethereum Stack Exchange Author: blockbyblock Original post: https://ethereum.stackexchange.com/a/89801 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. Using "12,34" in REMIX IDE desktop mac version works. Using 12,34 however doesn't (as it should). I believe this bug has been fixed.
Quote
Report

Post Reply

Quoted from Forex.com.bd-Editorial External question — Ethereum Stack Exchange Author: Floari Source score (net votes, not local likes): 7 Original post: https://ethereum.stackexchange.com/questions/70972 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. So when I try to put in three numbers as a String in a usual setter-method, it doesn't work. Does anybody know why? function test(string memory x) public view returns(string memory){ return x; } When I try: "1,2,3" I get an JSON Error, but when I try: "a,b,c" it does work perfect.

Cancel quote

Checking account access…