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 5549
0 votes
Accepted

Contract returns incorrect uint when it should fail

I would concentrate on your client-test testing methodology. When I loaded the code into Remix I found it does not compile under 0.4.19 as specified. You must be using a later compiler such as 0.4.2 …
Rob Hitchens's user avatar
  • 55.6k
2 votes

Solidity - preventing negative uint parameters/overflow

Since web3 apparently doesn't require functions with uint parameters to have positive values Not true. uint is always a positive number, by definition. I suspect the issue is about how the cont …
Rob Hitchens's user avatar
  • 55.6k
0 votes

Most gas efficient way to check if byte array contains zeroes?

You might find more efficiency if you venture into assembler but the concern that jumps out is the iterative nature of this approach, which is O(n). When you say "most gas efficient way" you don't say …
Rob Hitchens's user avatar
  • 55.6k
0 votes

Set and Get of a large amount of data

In the example below, there is a dynamic array of numbers and the appendNumber() function just keeps adding to the list. The contract emits an event for every important state change which I strongly r …
Rob Hitchens's user avatar
  • 55.6k
0 votes

Create token exchange by defining decimal values

A decimal symbol is a notation for human interpretation. Ethereum itself uses 18 decimal places of precision but is, in fact, represented by very large integers. 18 decimals of precision is an emerg …
Rob Hitchens's user avatar
  • 55.6k