Linked Questions

0
votes
3answers
40 views

how to send ether from contract to Ethereum account

I have 100 ether in my smart contract now I want to transfer the ether from contract to account automatically
9
votes
2answers
3k views

Is transfer() still safe after the Istanbul update?

In other words, is using transfer() safe? function transfer(address contractB) public { contractB.transfer(1000); //balances[msg.sender] -= 1000; } How about using call.gas? function ...
3
votes
2answers
642 views

Explain working of address.send function in solidity

I have been trying to get documentation for address.send() function, but i am unable to do so. Can someone please explain how address.send() function works, and how it can be used to send currency ...
1
vote
1answer
253 views

Why can't we use Transfer() to get a fallback from a contract?

Does this discussion imply that we cannot call transfer() to some contract and call its fallback function and can only do the same by using call() and setting gas?
1
vote
1answer
814 views

Call address.transfer() with Gas Limit and Price from another function

I have a smart contract where user can transfer ETH to an ICO. Like this function buyICO(paymentAddress, amount) { // do some other important things // transfer the amount to the payment address ...
1
vote
1answer
870 views

How send eth from a smart cotract

For example, I have 10 eth on my smart contract. How I send eth on another address?
0
votes
1answer
25 views

When is hashing used when creating a smart contract?

I was going through the solidity docs and in a contract example given I have seen keccak256 used. // Perform checks to determine if transferring a token to the // `OwnedToken` contract should proceed ...
0
votes
1answer
373 views

What is the core difference between send and transfer method of address payable in solidity? [duplicate]

I'm learning solidity I got two methods for transferring ether <address payable>.send(1 ether) <address payable>.transfer(1 ether) Both are used to transferring ether to the recipient ...
0
votes
1answer
347 views

how to transfer a specific balance from a smart contract?

Whenever someone buys a smart-contract the amount (in Wei) get stored in SC(Smart Contract) address(this) += msg.value. Now I am trying to create a function to redeem the balance of the SC ...
0
votes
1answer
245 views

The constructor should be payable if you send value - contract sending ether to another contract throwing an error?

I'm trying to implement re-entrancy hack for my own contract. Here is a great article that explains the method: https://medium.com/@gus_tavo_guim/reentrancy-attack-on-smart-contracts-how-to-identify-...
0
votes
1answer
169 views

Are there any security issues to send token in fallback function?

I want to have a contract that releases an erc-20 token as soon as someone pays ether to contract. Let's call this contract Bid Contract. The abstract code goes like: function askForTokens() public ...
4
votes
0answers
73 views

UNGAS and why was GAS made available to programming smart contracts?

Hardforks, such as Istanbul, have illustrated the best practice that smart contracts should not make any assumptions about gas. Gas costs have, can, and will change, for example: Is transfer() still ...
1
vote
0answers
2k views

How to use transfer(), send() and msg.value?

When I deploy a contract with a function with receiver.transfer(), receiver.send() or a msg.value function, the function can't get executed when I try to interact with it (MyEtherWallet and web3 via ...
0
votes
0answers
45 views

Transfer money (between accounts) without security breaches

I have this function that allows you to register a participant in an auction: function regAgent(uint[] memory _preferences) payable public{ // check if the sender has enough money to pay ...
0
votes
0answers
14 views

The Real Cost to Foward Transaction to EOA via Smart Contract?

I'm creating a smart contract that does the following: Checks that a userID parameter is included as data field OR that the last 4 zeros of the amount being sent is not equal to zero (i.e, 0....

15 30 50 per page