Questions tagged [send]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
12 views

Sending balance to contract fails

I'm playing ethernaut, the king of the hill level. I made a practice target contract and an attacking contract. I want to send value to the attacking contract (this works) then I want to send the ...
0
votes
1answer
19 views

What is the "bytes memory" in (bool success, bytes memory) = some_address.call{value: some_amount}("")

I understand that the success tells if the receive/fallback methods returned successfully but what does the memory give?
0
votes
0answers
243 views

How to send BNB (or other networks) with web3 on a dapp?

So, I tried the many examples found around but I never manage to get it working. I have this snippet: async function pay(cost) { code = 0 message = "Please approve the tx" ...
0
votes
0answers
72 views

Calling a non-payable function that mutates state? (web3)

With web3, you can call read-only functions using 'call()' (eg, balanceOf), and functions that mutate state with 'send({from: adr, value: 10})' I'm able to call payable and non-payable functions fine, ...
0
votes
1answer
398 views

Error calling web3.eth.Contract send() function gives error: Method not found

I just deployed a contract and wants to access it using web3 to read and write data. I have web3 working, passed the contract Address and ABI and I can access the contract and Read Data using: ...
0
votes
1answer
87 views

EVM:out of gas while executing send

I want to consider a scenario, lets suppose that a contract performs a transfer using send. At this point, out of gas occurs and send returns -1. Now the contract has no gas, and send does not revert,...
0
votes
1answer
251 views

Error: Member "send" not found or not visible after argument-dependent lookup

I am trying to compile the following smart contract: pragma solidity ^0.5.1; contract Governmental{ uint constant TWELVE_HOURS = 12; function lendGovernmentMoney ( address buddy ) public ...