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
i guess I've made no mistakes in the coding part but i get this error,
.......
INFO: Could not find files for the given pattern(s).
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract SimpleStorage{
uint256 favoriteNumber;
//the types of visibility variables are public,internal,private,external
function store(uint256 _favoriteNumber) public{
favoriteNumber = _favoriteNumber;
}
struct People{
uint256 favoriteNumber;
string name;
}
//fp rsingle person
//People public person = People({favoriteNumber : 2 , name : "Aditya"});
//for multiple persons
//People[] public person;
mapping(string => uint256) public nameToFavoriteNumber;
/*view and pure functions are non-gas consuming fuctions
a view function enables us the visibility of the function,
a pure function deal with the arithematic operations */
function retrieve() view public returns(uint256){
return favoriteNumber;
}
//memory-> data will only be stored during the execution of the function
//storage-> data persists even after the execution of the function
//string is an array of bytes
function addperson(string memory _name,uint256 _favoriteNumber) public{
//person.push(People(_favoriteNumber,_name));
nameToFavoriteNumber [_name] = _favoriteNumber;
}
}
Traceback (most recent call last):
File "d:\vhkvkjk\blockchain\bcCode\deplay.py", line 11, in
compile_sol = compile_standard(
NameError: name 'compile_standard' is not defined
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
i guess I've made no mistakes in the coding part but i get this error,
.......
INFO: Could not find files for the given pattern(s).
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract SimpleStorage{
uint256 favoriteNumber;
//the types of visibility variables are public,internal,private,external
}
Traceback (most recent call last):
File "d:\vhkvkjk\blockchain\bcCode\deplay.py", line 11, in
compile_sol = compile_standard(
NameError: name 'compile_standard' is not defined
Beta Was this translation helpful? Give feedback.
All reactions