Search Results
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 |
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
0
answers
140
views
Ethereum Solidity modifiers
I am trying to do something like this in Solidity as a modifier but it wont work. …
1
vote
1
answer
273
views
Is there anyway to know the name of the external method calling a contract
Is there anyway to know the name of the external method calling a contract's method from within the called contract method?
As an example, msg.sender gives you the address of the calling contract.
I t …
0
votes
1
answer
685
views
Issues with converting UINT to STRING - strange character [duplicate]
I am trying to use the uintToString method to convert a uint to string but I keep getting a weird square character in front of the resulting string.
How do I remove this character, or better yet how …
1
vote
3
answers
3k
views
Where can you download SOLC ( solidity compiler) from?
I am looking for the SOLC solidity compiler that works with JSON-RPC. … Please refer to the Solidity compiler documentation for instructions to install solc."
ON the Ethereum site, I cannot find a simple download page for it...
Any ideas? …
3
votes
1
answer
524
views
Solidity Browser and Truffle giving different bytecodes
I am compiling in solidity browser and then compiling the same exact code in truffle. … The code is the following:
pragma solidity ^0.4.11;
contract double{function d(int256 a)constant returns(int256){return a*2;}}
The resulting bytecodes are different from each other. …
1
vote
1
answer
1k
views
Accessing External Contract's Struct Array mappings
I have struct in an external contract that I need access to
Contract Ext{
Struct user{
uint dailybalance;
}
mapping ( address => user[] ) userDailyBalances;
}
How do I access the dailybalanc …
6
votes
4
answers
3k
views
keccak3 in SOLIDITY and in WEB3 different hashes for an address type field
How can I get the same resulting hash from Keccak-256 ()in solidity and web3.sha3() in web3?
IN solidity using keccak256( address ) and using web3.sha3 ( address ) gives different results. … I tried converting the address type field to a string in solidity and I still received different results in hashes. …
11
votes
2
answers
10k
views
trying to use web3-utils but not working
Trying to use web3-utils.
I installed the package via NPM , however, I am getting the error that sha3 is undefined..
TypeError: Cannot read property 'sha3' of undefined
at C:\block2\deliver.js:1 …
0
votes
Method ID for a Solidity generated getter function
On solidity browser the bytecode for all functions ina contract is given. No need to break your head... Discovered it moments after posting this. …
2
votes
1
answer
877
views
Calculating Gas Cost on an iteration
How can you calculate gas cost on an iteration of something such as updating balances on 1000 token holders?
7
votes
3
answers
9k
views
Method ID for a Solidity generated getter function
In solidity, the bytecode for functions is taking the web3.sha3 value of a function name and taking the first 4 bytes of the resulting hash in the format of 0x00000000
So if you have a function called …