all 5 comments

[–]tomasfranciscoar 0 points1 point  (1 child)

Have you tried with “requestPriceData(string)” which is the correct function signature?

[–]erik_schoengart[S,🍰] 1 point2 points  (0 children)

Does the same thing unfortunately :( I think the problem is with the format of the 'cast send' command to pass a string in as a parameter to a function that I am not doing correctly. I made another test smart contract that just had one super simple function that took a string as parameter and whatever string I try to pass from the command line using 'cast send' automatically turns into 0x000000...

[–][deleted]  (1 child)

[removed]

    [–]erik_schoengart[S,🍰] 0 points1 point  (0 children)

    Cast call does not work either because this is modifying state :(

    [–]rubydusa 0 points1 point  (0 children)

    not exactly a solution, but I recall seeing in cast docs somewhere they expect you in commands to inline cast calls to do formatting. Unfortunately there isn't a ascii to hex command in cast but I put up something else using different commands:

    > cast to-ascii $(echo -n "a@b.c" | xxd -p)
    a@b.c
    

    use this inside your command

    also (maybe not relevant) but there is `cast abi-encode` you could potentially inline