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.
0
votes
0
answers
39
views
ERC-20 token with identitfication
I would like to create a generic ERC-20 token with identification. The token would only be transferred to previously identified addresses. The way identification is implemented should be as decoupled …
1
vote
3
answers
561
views
Verify if an input is a hash
What is the best way to verify that a text I received in mu function is a valid hash? In other words, contains a specified length and is composed only by numbers and "a", "b", "c", "d", "e" or "f"?
0
votes
Verify if an input is a hash
My implementation was:
function isValidHash(bytes memory b) pure public returns (bool) {
if(b.length != 64) return false;
for (uint i=0; i<64; i++) {
if (b[i] < "0") return false;
…
0
votes
1
answer
42
views
Loading modified contracts keeping the same super class
I am trying to implement upgrade of contracts. One pattern by [1] is to have a layer to resolve the actual address of a contract.
I implemented that adding the Pausable manipulation. My idea was to pa …
0
votes
Loading modified contracts keeping the same super class
I later realized that the resolver was not the owner of the second Pausable. That was the reason of my error.
In other words, the EVM solves the call dinamically. If I can change the object, the EVM w …
0
votes
1
answer
229
views
Certificate Autority to Ethereum
Since there is no native support to Certificate Authorities in Ethereum, what are good ways to emulate it in a permission network (we are using Hyperledger Besu)?
4
votes
1
answer
390
views
Issues with extreme large solidity mapping
Is there any scalability problem if the number of items of a solidity mapping increase too much? For example, any problem when adding, changing or removing some item in the dataset? …
0
votes
Reading the result of a function that change state by using events in Solidity
I changed the contract 1 to emit a event there.
function createTradeableContract() public stopInEmergency returns(address subcontractAddr) {
TradeableContract tc = new TradeableContract(msg.sende …
1
vote
1
answer
71
views
What are the ways to call a smart contract function during development?
What are the ways to call a smart contract function during development using Truffle simulated VM with a GUI interface (like Remix or EtherScan offer)?
I know I could use CLI options like Truffle an …
1
vote
3
answers
710
views
Reading the result of a function that change state by using events in Solidity
I would like to get the result of a function by listening its emitted event.
These are two pieces of code of my contrats
CONTRACT 1:
function createTradeableContract() public stopInEmergency retur …