Skip to main content

All Questions

Filter by
Sorted by
Tagged with
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 ...
MAYANK CHHIPA's user avatar
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) ...
Bora Özenbirkan's user avatar
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 { ...
ML_DL_RL's user avatar
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 ...
forhas's user avatar
  • 825
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(...
John Sterlacci's user avatar