Skip to main content
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
Results tagged with
Search options not deleted user 20498

Questions regarding the development of smart contracts

1 vote
1 answer
683 views

Writing to storage string vs bytes for token parameters

I'm wondering why string is used to define token parameters such as name, and symbol? Why can't I use any form of bytes such as bytes8 etc. I understand that it's a public parameter and non-devs wil …
NowsyMe's user avatar
  • 1,375
0 votes
1 answer
646 views

Transferring tokens to hardcoded addresses

If i have a list of addresses and the exact amount of tokens that I want sent to each address, how can I hardcode a transfer function to transfer the exact amount of tokens to all specific addresses i …
NowsyMe's user avatar
  • 1,375
1 vote
2 answers
294 views

Transferring tokens to contract B based on contract A's balances mapping

Is it possible to snapshot the 'balances' mapping from an old contract ? and give them free new tokens based on the amount in the mapping
NowsyMe's user avatar
  • 1,375
1 vote
4 answers
2k views

Crowdsale with existing token

This might be a very general question, though I'd like if someone could clarify on how to within a crowdsale contract use an already deployed token contract with a fixed supply. I know how to create a …
NowsyMe's user avatar
  • 1,375
23 votes
2 answers
4k views

Explanation of Parity Library Suicide

So today, A vulnerability found within the Parity walletLibrary which resulted in freezings of potentially hundreds of millions of dollars from wallets using parity multi-sig. Can someone technically …
NowsyMe's user avatar
  • 1,375
0 votes
0 answers
363 views

Unbounded loop solidity internals

Under the hood, what happens in an unbounded loop? let's say I'm trying to send tokens to an infinite amount of addresses and end up with an out of gas error. Will the function which executes the tran …
NowsyMe's user avatar
  • 1,375
0 votes
1 answer
157 views

input argument structure for constructor in remix

how would the structure for an argument to the below constructor look like in remix? constructor( uint256[5] memory _a, uint256[5] memory _b, ) public {...}
NowsyMe's user avatar
  • 1,375
0 votes
1 answer
268 views

constructor input arguments or hardcoded values? best practice

What is the rationale for choosing to use constructor input arguments over hardcoded values? and what is best practice?
NowsyMe's user avatar
  • 1,375
0 votes
1 answer
85 views

Require(...) condition location in wrapped functions

If I'm wrapping functions, like below, does it make a difference whether I check the input argument in the private function or the external one? Will it save me gas cost to do it in the external one b …
NowsyMe's user avatar
  • 1,375
0 votes
1 answer
889 views

Burn existing token through new contract

How can I burn a token that already exists with no burnable functionality inside its smart contract? Can i create a new contract with a burn function and call the specific token that I want to be burn …
NowsyMe's user avatar
  • 1,375
1 vote
1 answer
896 views

One-to-many Token Transfer with address specific values [duplicate]

I'm trying to figure out a way to transfer some tokens from my address to multiple other addresses which all must receive a specific value associated with the specific address, how would I go about th …
NowsyMe's user avatar
  • 1,375
1 vote
1 answer
56 views

BurnTotalSupply

If all tokens are distributed and no one is burning their own tokens then how can a function like below burn from total supply? can a function like this really burn other peoples tokens? function bur …
NowsyMe's user avatar
  • 1,375
0 votes
1 answer
113 views

When transferring value

When transferring value within a function which one is best practices to do? require(refundAddresses[x].send(refunds[refundAddresses[x]])) refundAddresses[x].send(refunds[refundAddresses[x]
NowsyMe's user avatar
  • 1,375
0 votes
1 answer
321 views

Require instead of if for input validation

Why is it preferred to use require instead of if for input validation/checks of functions?
NowsyMe's user avatar
  • 1,375
0 votes
1 answer
258 views

transferOwnership function

Shouldn't following function function transferOwnership(address newOwner) public onlyOwner { require(newOwner != address(0)); OwnershipTransferred(owner, newOwner); owner = newOwner; } …
NowsyMe's user avatar
  • 1,375

1
2 3 4 5
8
15 30 50 per page