Closed starit closed 2 years ago
dapp create DSToken '"SYMBOL"'
should work
As soon as the string has spaces in it, it appears the syntax suggested above no longer works, as hevm parser treats it as a separate argument. Ideas how to solve for such case?
@tfalencar can you escape the space with a \
?
Unfortunately I've tried that too and it didn't work:
dapp create MyContract '"DAI"' '"This\ ticket\ is\ not\ valid\ as\ an\ invoice."' -- --gas '' --rpc-url https://....
hevm: wrong number of arguments:9: ["\"DAI\"","\"This\","ticket\","is\","not\","valid\","as\","an\","invoice.\""] CallStack (from HasCallStack): error, called at hevm-cli/hevm-cli.hs:984:11 in main:Main
Why do you have two params for the constructor? The contract expects just one, the symbol. And still works for me if I do:
dapp create DSToken '"My Token"'
Thanks for the help @gbalabasquer : you made me realise it was a mistake elsewhere in my bash script, where string arguments got expanded to multiple items when passed to a function.
Why do you have two params for the constructor?
MyContract is different and takes two string parameters.
I compiled with
solc:0.5.12
successfully and failed to rundapp create
with nor string or bytes32it shows the error: