Skip to main content

Questions tagged [calldata]

Questions about the "data" part in a transaction, which can be accessed by "msg.data". web3.eth.getTransaction calls this field "input".

1 vote
1 answer
32 views

Suppose you have some ABI-encoded data like this (this a bytes variable holding a simple uint256): ...
Paul Razvan Berg's user avatar
0 votes
1 answer
25 views

TypeError: Type literal_string "cat" is not implicitly convertible to expected type string calldata. --> SimpleStorage.sol:15:12: | 15 | _name ="cat"; | ^^...
Supreme V0iD's user avatar
0 votes
1 answer
49 views

I've been searching but have not gotten a concrete answer, when passing an argument in a internal function, for example, logging an event, I only want to read the argument and emit the event. From ...
pierre96's user avatar
0 votes
2 answers
41 views

I wrote some logic for a fundraising contract function fund() public payable { // myValue = myValue + 1; require(msg.value.getConversionRate(s_priceFeed) >= MINIMUM_USD, "...
Owanemi Osaye-William's user avatar
0 votes
1 answer
98 views

I want to append some data along with the Ethereum contract call. for example, tokenContract.approve. I understand we can add the plain data to data field when we do a plain transaction. Just like ...
Eric Lee's user avatar
  • 161
0 votes
1 answer
95 views

I'm doing the course of Patrick Collins to learn about programming in Solidity; but some libraries from Chainlink has been changed since 2 years ago. So, when I try to compile the code I have the next ...
Tucan's user avatar
  • 3
1 vote
0 answers
159 views

My question is regarding the decoding of transaction data. Specifically, when combing the Ethereum mainnet mempool and getting the transaction data for a transaction. How would I go about getting the ...
Max.Koeg's user avatar
1 vote
0 answers
73 views

I want to call it a smart contract function. I am signing the transaction using Metamask so I need to create call data for the transaction. I want to use Nethereum for creating the call data of the ...
Shubhankar Banerjee's user avatar
0 votes
1 answer
59 views

CALL opcode consumes value of the stack (which is transferred to the account). It can also additionally consume stack items to pass input to the smart contract account function. Can both happen ...
Sudeep Kumar's user avatar
1 vote
2 answers
213 views

Let's say I have the following struct: struct Price { uint value; } Let's say I have the following function: function isPriceOkay(Price calldata price) public pure returns (bool) { return ...
robeng's user avatar
  • 41
0 votes
1 answer
101 views

Suppose I have a contract below: contract Hack { Switch private target; constructor(address _target) { target = Switch(_target); } function test() external pure returns (...
Shubham's user avatar
  • 35
0 votes
1 answer
82 views

I want to send eth + data into this contract: 0x5293Bb897db0B64FFd11E0194984E8c5F1f06178 like this transaction: https://sepolia.etherscan.io/tx/...
Zambaize's user avatar
1 vote
1 answer
96 views

Code: https://www.contractreader.io/contract/mainnet/0x0C7D4bdA40CF78F9F1BAf6e3D5774f1E22c9CC4B My question is about this verifyCalldata() call: function verifyAddress( uint256 _projectId, ...
Donn Lee's user avatar
  • 113
0 votes
2 answers
297 views

I have had a contract made for me, and a dapp set up by a developer. My question is how can i produce an event on my website when the user has approved spend of a certain token? Can i use a javascript ...
Jim Mike's user avatar
6 votes
3 answers
207 views

I'm considering a problem that I havent seen someone else look at yet. The problem statement is how can we prove that some data (e.g., a transaction, a block header) has been fetched from a block of a ...
Mostafa's user avatar
  • 61

15 30 50 per page
1
2 3 4 5
13