Discussion of engineering best practices, design patterns and security for smart contracts
```var gas = await commitFunction.EstimateGasAsync(platformAccount.Address, new Nethereum.Hex.HexTypes.HexBigInteger(15000), new HexBigInteger(Nethereum.Util.UnitConversion.Convert.ToWei(0)), id.HexToByteArray()).ConfigureAwait(false);```
I wanna estimate gas, but got error: gas required exceeds allowance or always failing transaction.
Anyone familiar here with inline assembly? I've tried like everywhere.
I'm trying to make a low level dispatcher. What is different from existing implementations is that I Need to load in a struct from storage to pass as a param to the library I'm delegating to. I'd also need to split the calldata and put that storage struct in between.
Here's the issue on github: ethereum/solidity#4854
Any help gets huge kudos in my extensive blogpost on smart contract architecture :)
Hi, can someone same me a sample of how to build ERC20 Token with function:
Lock Airdrop Distribution till after Token Sale and Distribute Automatically to members,
Distribute Token to Investors automatically, Only Core Investors are required to sell tokens on the first seven (7) days
after listing of Token on Exchange market.
Reserved Tokens locked for 6 Months.
Lock Team Member tokens for 12 Months.
Presale and Crowdsale Tokens are distributed automatically to buyers ETH Address,
and locked till After Token sale and 7 days after listing on Exchange Market.
Token Sale Prices: $0.001, $0.005, $0.01, $0.05, $0.05
Unsold tokens to be burnt, after crowdsale.
If tokens allocated to a particular tier are not exhausted in sales, it should be rolled over progressively to the next tier.
Thanks for the Help