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 regarding the development of smart contracts
0
votes
1
answer
2k
views
What is BlackList and why it is used in Tether Token Smart Contract? And what is the use of ...
contract BlackList is Ownable, BasicToken {
function getBlackListStatus(address _maker) external constant returns (bool) {
return isBlackListed[_maker];
}
function getOwner() external constant re …
1
vote
1
answer
109
views
What is the main use and purpose of Upgraded Standard Token?
contract StandardToken is BasicToken, ERC20 {
mapping (address => mapping (address => uint)) public allowed;
uint public constant MAX_UINT = 2**256 - 1;
function transferFrom(address _from, address …
0
votes
1
answer
3k
views
How to convert plain text string variable to bytes32 variable? And how to store bytes32 in o... [duplicate]
pragma solidity ^0.4.25;
contract Purchase {
address public sellerAddress;
constructor (address _sellerAddress) {
sellerAddress = _sellerAddress;
}
}
contract Buyer is Purchase …
0
votes
1
answer
23
views
How do I get product/parcelID from particular Assigned address using struct and mapping?
struct Sellers{
address sellerAddress;
uint parcelId;
uint parcelPrice;
}
In this struct I've entered multiple parcel Ids to sellerAddress and I've retreived them using _sellerAddress.
…
0
votes
1
answer
115
views
ERC223 Token doesn't transfer while working with data field in transfer() function
Instead of showing tokens the output shows Internal transactions or just contract interactions. what changes are needed to transfer tokens to any other ERC223 receiver contract?
function transfer( …
0
votes
1
answer
65
views
How to set token holder's address without duplication?
In following code I've implemented two functions to set and get Token holders.
function setTokenHolders(address _to)internal returns(bool){
for(uint i = 0; i<= tokenHolders.length; i++){
…
1
vote
1
answer
168
views
how to change approveAndCall() function for upgraded compiler version of solidity 0.5.1 from...
Here is the code snipped which is used when I'am working with compiler version 0.4.6 :
function approveAndCall(address _spender, uint256 _value, bytes memory _extraData) public returns (bool success) …
1
vote
2
answers
1k
views
What is the main use of approveAndCall() function and _extraData?
function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns (bool success) {
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
if(! …
0
votes
1
answer
70
views
How to make transaction of some ether in Buyer Seller type of contract?
In this I have set modifier (msg.sender == sellerAddress) which is not valid.
But in this scenario, I want to allow only and only sellerAddress to take ether from my contract. How can I allow only sel …
1
vote
1
answer
119
views
Why is the totalSupply of this token statically initialized to 5500000000?
contract UnixERC20 is StandardToken {
function() {
throw;
}
string public name;
uint8 public decimals;
string public symbol;
string public version = 'H1.0';
funct …
1
vote
1
answer
110
views
For Recipient how do I store Sender's account address and Password of Recipient's own accoun...
How to check following things using Solidity:
Password matching (hash formed)
if password matches then transfer take place
0
votes
1
answer
58
views
Struct and Mapping input value error of Invalid Opcode while calling setSeller() to store mu...
What dose the -1 means? Or why we should use -1 while pushing one element in array. What should I enter in sellerAccounts: field as input?
pragma solidity ^0.5.1;
contract Seller{
struct Seller …
0
votes
0
answers
1k
views
How to flush token to another contract from token holder's token balance from ERC-20 contract?
I have to implement the following scenario:
- One ERC-20 token contract.
- Another contract which will flush tokens of ERC-20 tokens.
- Add these tokens to one, defined Admin address.
Note: All proc …