All Questions
Tagged with abi.encodewithsignature abi
5 questions
0
votes
1
answer
55
views
Abi Encode with Signature - String memory as parameter to function
I'm trying to do
abi.encodeWithSignature(
"mint(address, string **memory**)",
receiverAddress,
tokenURI
)
The function definition ...
1
vote
2
answers
113
views
Call fails when I send 2 params to other contract with abi?
I can send 1 parameter to Contract A (otherContract) and it works well. But when I send 2 parameters, it fails. What do I do wrong?
Contract A:
function sumTwoParams (uint256 _num1, uint256 _num2) ...
0
votes
0
answers
325
views
Revert transaction payable error with abi.encodeWithSignature
I have two contracts:
Validate.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
contract Validate {
function validate(address _verifier, bytes memory _validityData) public view {
...
0
votes
1
answer
3k
views
Encode function data with value
I have Contract A:
import "@openzeppelin/contracts/utils/Address.sol";
contract A {
using Address for address payable;
function proxyCallWithValue(address payable target, bytes memory ...
3
votes
0
answers
1k
views
abi.encodeWithSignature and abi.encode have inconsistent results with dynamic arrays
pragma solidity 0.8.0;
function isMemberOfArrayEncodedTest(address member, address [] memory memberArray) public returns (string memory){
bytes4 sig = bytes4(keccak256("isMemberOfArray(...