Timeline for solidity contract invocation: raw call with string param won't be passed
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 1, 2018 at 19:50 | comment | added | user19510 |
nrek , if you have a question of your own, please ask it here: ethereum.stackexchange.com/questions/ask.
|
|
Mar 1, 2018 at 12:19 | comment | added | nrek | What if I don't know the contract type of instance (it's just an address), but I do know it has a function of signature say func(string)? Then I could only use instance.call(bytes4(keccak256("func(string)")), raw_str).... | |
Mar 1, 2018 at 12:11 | comment | added | nrek | I'm experiencing the exact same issue. How can I pass in arbitrary length string (or unknown length) if using bytes32 instead? | |
Feb 24, 2018 at 10:36 | comment | added | qbsp | Ok. I'll try it later. But I couldn't go for this solution anyway. Because in case the method will throw and exception (via asset, require) I'm not able to catch it and handle. That was one of the reason why I used call. | |
Feb 24, 2018 at 10:17 | comment | added | user19510 |
Oh, I think you may need to pass a bytes32 .
|
|
Feb 24, 2018 at 10:15 | comment | added | qbsp |
actually method2 is not payable. But if I try to do that in a payable method (which in my case is method ) I get the following error TypeError: Not enough components (0) in value to assign all variables (1) .
|
|
Feb 24, 2018 at 10:01 | history | answered | user19510 | CC BY-SA 3.0 |