Output of _target.functions:

{
'approveToken(address,address,address,uint256)': [Function (anonymous)],
'init(address)': [Function (anonymous)],
'getNonce(address)': [Function (anonymous)],
'transferToken(address,address,address,uint256,bytes)': [Function (anonymous)],
'addModule(address,address)': [Function (anonymous)],
'recoverToken(address)': [Function (anonymous)],
'execute(address,bytes,uint256,bytes,uint256,uint256)': [Function (anonymous)],
'relayer(address)': [Function (anonymous)],
'isOnlyOwnerModule()': [Function (anonymous)],
approveToken: [Function (anonymous)],
init: [Function (anonymous)],
getNonce: [Function (anonymous)],
transferToken: [Function (anonymous)],
addModule: [Function (anonymous)],
recoverToken: [Function (anonymous)],
execute: [Function (anonymous)],
relayer: [Function (anonymous)],
isOnlyOwnerModule: [Function (anonymous)]
}

Dec 18, 2021, 3:49 AM
I would like to encode the method with its parameters
Can anyone please help with this?
I would like to encode the method with its parameters and pass it further that to a method in a smart contract
I would like to encode this function: transferToken(address,address,address,uint256,bytes)
along with its parameters
I am able to solve it.. Please ignore this message
Dec 18, 2021, 4:25 AM
which library are you using? On ethers theres a low-level library called abiencode i belive, i dont have any experience with it but it might be what youre looking for.
Do you want to encode a function call or just the function signature?
Dec 18, 2021, 4:57 AM
just the function signature
along with the parameters
Dec 18, 2021, 5:27 AM

© 2024 Draquery.com All rights reserved.