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 |
1
vote
Call fails when I send 2 params to other contract with abi?
returns(bytes memory) {
// This produces: 0x60fb6acb00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002
return abi.encodeWithSignature … returns(bytes memory) {
// This produces: 0xff19a36e00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002
return abi.encodeWithSignature …
1
vote
Accepted
Encoding a bytes array with function signature: "TypeError: This type cannot be encoded."
CONTRACT_ADDRESS = doStuffAddress;
}
function doIt() public {
bytes[] memory dataArray = new bytes[](1);
(bool success, bytes memory returnData) = CONTRACT_ADDRESS.call(
abi.encodeWithSignature …
0
votes
Able to call swap function with interface, but not with .call(
Weird.
I tried your code in Remix and modified it a bit to use it locally and they both work alright for me.
Can you share the encoded data that you are sending to the smart contract? I would like to …