Last active
August 5, 2021 10:32
-
-
Save bellaj/74295ef34db6632d72e4ca9f4350e9f7 to your computer and use it in GitHub Desktop.
solidity problems
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Python: TypeError: 'list' object is not callable | |
==> when you try to call a map with () instead of [] | |
Uncaught Error: solc: exit status 1 Error: Doc tag @notice not valid for statements. is caused by a //// comment you should use only // | |
when you want to fill a array struct | |
use a local var like : /// construct the struct "Delivery" and assign it to storage. | |
var queue = requestQueue; // stores reference to storage | |
queue[queue.length++] = Delivery(from, to); | |
DeliveryRequested(from, to); | |
TypeError: abi is undefined when event used in solidity browser | |
this problem occures if you use the javascript VM however if you change to a local wb3 provider this probleme disappear. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Four slashes (////) resulting in the "Doc tag @notice" error is crazy! The solution is to remove two slashes so that comment starts with exactly two slashes (//).