solidity-patterns
solidity-patterns copied to clipboard
Error [contracts/oracle.sol:19:39: TypeError: Data location must be "memory"]
Hello,
When trying to run the sample at https://fravoll.github.io/solidity-patterns/oracle.html In Remix.Ethereum.Org I have the following error :
contracts/oracle.sol:19:39: TypeError: Data location must be "memory" for parameter in function, but none was given.
function __callback(bytes32 myid, string result) public {
^-----------^
Try string memory result
Thank you, I'll try that and will let you know if that resolves the issue.
Write " bytes32 memory myid, string memory result ". The problem will solve.