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
1
answer
531
views
Testing library functions with Javascript & Truffle
I'm trying to test functions of a library with Truffle. But they don't seem to be available.
The library is named Commons and I include it as I would include a contract:
var Commons = artifacts.requ …
0
votes
Error in plugin solidity-coverage: TypeError: provider.send is not a function - Hardhat
I encountered the same problem and was able to solve it by downgrading hardhat from version 2.16.1 to 2.14.1 via npm i [email protected].
2
votes
0
answers
186
views
Performing a C-like pointer increment in Solidity
How can this be done in Solidity? … v := byte(0, mload(add(sig, 96)))
}
return (v, r, s);
}
(https://solidity.readthedocs.io/en/v0.5.12/solidity-by-example.html)
So I need to derive the last 65 Byte of the extra field to derive …
1
vote
2
answers
677
views
Invalid opcode exception when trying to resize a storage array
If Solidity has better data structures available (like a binary heap for starters), please let me know. …
1
vote
0
answers
137
views
Mapping shared between contracts
The elephant in the room is to use two Solidity mappings in my contracts. …
2
votes
2
answers
3k
views
Reason for check of msg.value > 0
I came across published smart contracts (like this one from ConsensSys) that check whether msg.value is strictly larger than zero in their payable functions.
After wondering whether msg.value can be …