General Practicing for question formatting! #271
-
function SF_Store(uint256 _Index, uint256 _numberadd)public {
//ABI Application Binary Interface.
StorageArray[_Index].Store(_numberadd);
} On this function, I'm running into an error: TypeError: Member "Store" not found or not visible after argument-dependent lookup in contract SimpleStorage Hi there, can anyone help me here why I'm getting this error? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Can you share the entire solidity file? I'm not sure whether you're using StorageArray as a map or an array. Try this maybe |
Beta Was this translation helpful? Give feedback.
-
StorageArray[_Index].Store(_numberadd); You have done a typo mistake here, make sure the spelling of the Store method. @faisalbaloch11 |
Beta Was this translation helpful? Give feedback.
-
Could you share the rest of the code? Might of used the wrong form of visibility for Store? Such external, public, ect? |
Beta Was this translation helpful? Give feedback.
StorageArray[_Index].Store(_numberadd);
You have done a typo mistake here, make sure the spelling of the Store method. @faisalbaloch11