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 |
questions for finding and squashing bugs in smart contracts and decentralized development
1
vote
Where can I get feedback on how to improve my smart contract?
I just had a look at your contract and one important feedback I can give right away is, that your smart contract is not upgradable. Which means, if this contract is deployed, it can never be killed. I …
2
votes
debugging solidity contract geth
From my personal experience, I'd suggest you to try truffle because deploying contract on geth is a hectic job. Truffle gives you CLI to deploy your contract and it's pretty handy too. You can play wi …
1
vote
remove contract on ethereum blockchain using web3
As @manuhalo said, You can not remove or update a contract from web3 unless your contract is upgradable. Also, to call selfDestruct you need to have a function(preferably with the name - Kill) in your …
18
votes
Accepted
How can you handle an expected throw in a contract test using truffle and ethereum-testRPC?
You can use OpenZeppelin's expectThrow helper -
Source: https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/test/helpers/expectThrow.js
export default async promise => {
try {
…