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 answers only not deleted user 16043
2 votes
Accepted

Ethers.js invalid number value while deploying contract

const tokenWeiPrice = (answers.priceEur / ethEur) * Math.pow(10, 18); Problem #1: 10 ^ 18 > Number.MAX_SAFE_INTEGER Problem #2: tokenWeiPrice is not necessarily an integer. You should use BigNu …
goodvibration's user avatar
1 vote
Accepted

Error: invalid type (arg="type", value="a") web3.js

Change this: "internalType":"address" And this: "internalType":"uint256" To this: "name":"" UPDATE: It also seems that you have two balanceOf functions in your ABI, god knows why (maybe an … answer above, just use this one: { "constant" : true, "inputs" : [{"name":"","type":"address"}], "name" : "balanceOf", "outputs" : [{"name":"","type":"uint256
goodvibration's user avatar
8 votes
Accepted

Can solidity have negative numbers?

The answer to your question is Yes: Solidity supports int types, which are treated arithmetically as signed values (i.e., can be positive, negative and zero). The answer to your concern is No: Si …
goodvibration's user avatar