Skip to content

Instantly share code, notes, and snippets.

@bellaj
Last active August 5, 2021 10:32
Show Gist options
  • Save bellaj/74295ef34db6632d72e4ca9f4350e9f7 to your computer and use it in GitHub Desktop.
Save bellaj/74295ef34db6632d72e4ca9f4350e9f7 to your computer and use it in GitHub Desktop.
solidity problems
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.
@nrchandan
Copy link

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 (//).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment