You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 {
^-----------^
The text was updated successfully, but these errors were encountered:
In Solidity, variables declared inside functions are by default in the memory data location, except for variables that represent state (defined outside functions), which are in the storage location.
Solidity requires you to specify the data location (memory or storage) for function parameters if they are of array type or struct type.
So write: " bytes32 memory myid, string memory result ". to solve this problem.
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 :
The text was updated successfully, but these errors were encountered: