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 36552

Questions regarding the development of smart contracts

0 votes

Difference between creating contract with and without using new

In the first scenario, each time you call B.get(), you will deploy a new instance of A. If you call it 10 times, there will be 1 B contract, and 10 A contracts. In the second scenario, contract A is …
Raghav Sood's user avatar
  • 4,060
1 vote
Accepted

How do I send etheream to a contract?

You do not have a payable function in your contract (besides the constructor, but that cannot be invoked after deployment). Try adding a payable fallback: function() public payable { } Then, send …
Raghav Sood's user avatar
  • 4,060
0 votes
Accepted

Service that can accept an Ethereum private key and then forward funds in the future?

To my knowledge, no such service exists, although building one would not be terribly difficult if you have access to a node. Naturally, entrusting private keys to a third party is a terrible idea and …
Raghav Sood's user avatar
  • 4,060
2 votes
Accepted

contract compiles and fails to deploy on Remix or local

It is likely failing during the deployment in the execution of your constructor. Within the constructor, you call: createCredential("A", "Associate Degree in Basket Weaving", "BA - Arts"); This en …
Raghav Sood's user avatar
  • 4,060
1 vote

Abi to call value

solc will generate the ABI for you (as will remix and truffle) Just run solc --abi yourfile.sol. You can see a list of compiler options here.
Raghav Sood's user avatar
  • 4,060
0 votes

Contract A has a function that depends on Contract B's state. How does concurrency work for ...

You are correct in the two scenarios depending on the order of execution. This is known as a front running attack, and many ERC20 token's approve functions are vulnerable to it: https://blog.smartdec. …
Raghav Sood's user avatar
  • 4,060
2 votes

Contract structure for storing user application

So, I am converting the data first to pdf and then creating the hash of pdf using Keccack 256 algorithm and storing the hash to the contract Why not just take the mongodb document output (JSON) a …
Raghav Sood's user avatar
  • 4,060
1 vote

Contract NOT created when using "new" on testnet

The contract is being created. The geth debug trace shows the CREATE opcode and storing of the code. Additionally, if you call getCode on geth for one of the deployed addresses (from this tx's log), …
Raghav Sood's user avatar
  • 4,060
1 vote

how do I make users sign different strings with their private key separatelly

You can't. Metamask follows a 1 dialog, 1 signature system for users' security. If you want to perform actions like this, you will need to implement your own signed (web3 has direct support for it), a …
Raghav Sood's user avatar
  • 4,060
1 vote
Accepted

Problem transferring ether to contract (Error: transact to EtherInteractionTest.deposit erro...

Your code requires that the msg.value equals the amount parameter. Yet, your remix screenshot shows you are sending a 0 value tx with an amount of 10 as the parameter. This fails the require statemen …
Raghav Sood's user avatar
  • 4,060
2 votes

Is our smart contract required gas,every time it executes.

Gas is not a currency. It is a unit of work. Gas is calculated based on the exact operations performed during the execution of a transaction. For smart contracts, this means it is based on what code …
Raghav Sood's user avatar
  • 4,060
1 vote
Accepted

How does the network / EVM handle same contract call within same block with same gas?

Transactions are included in a block in a specific order. In your example, even if both transactions are in the same block, one will come before the other. In this case, the first tx in the block's t …
Raghav Sood's user avatar
  • 4,060
2 votes
Accepted

How do Token transfers, the associated token contract transactions and ERC20 token txns fit ...

You're mixing two different parts here. When you look at etherscan's token page, you see the Transfer events emitted by the quantstamp contract. These are the events that log user to user transaction …
Raghav Sood's user avatar
  • 4,060
1 vote
Accepted

ICO functions & limitations

Yes, you can do this via the fallback function. If a contract is called with empty input data, or with a function signature that doesn't match any function on the contract, the fallback function is e …
Raghav Sood's user avatar
  • 4,060
2 votes

Questions related to the aftermath of breaking an iterative loop

Whether the contract is stalled or not depends on your exact implementation. If you have some function in your contract which iterates over the entire array every time it is called, then the contract …
Raghav Sood's user avatar
  • 4,060