Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 17557

Solidity is a contract-oriented, high-level language whose syntax is similar to that of JavaScript and it is designed for writing smart contracts in Ethereum to run on the EVM. Solidity is statically typed, supports inheritance, libraries and complex user-defined types among other features.

1 vote

How to detect errors from contract calls

You can check the output type using typeof method. Let's say the datatype of the two output is string: (async () => { for(var i = 0 ; i <= 4 ; i++){ const res = await myContract.methods.co …
Abhishek Sinha's user avatar
1 vote
Accepted

constructor doesn't trigger on deployment

Keep only one SPDX license and remove others You have typos and extra brackets in the Token contract. Replace it with this - contract Token is ERC20 { address public admin; address public …
Abhishek Sinha's user avatar
1 vote
1 answer
342 views

setting value using address.call() doesn't works

pragma solidity ^0.8.3; contract Receiver { event Received(address caller, uint256 amount, string message); uint256 bar = 9; function foo(string memory _message, uint _x) public payable …
25 votes

Are there well-solved and simple storage patterns for Solidity?

Read here for more information: require, assert and revert in solidity. …
Abhishek Sinha's user avatar