고졸백수해킹일기

solidity abi call at contract using solidity 본문

Blockchain

solidity abi call at contract using solidity

ExploitSori 2024. 7. 31. 17:08

function 인자의 각 자료형에 맞도록 맞춰줘야함.

bytes memory data = abi.encodeWithSelector(funciton signature, arg1, arg2, arg3);
(bool success, bytes memory result) = a.call{value: v, gas: g}(data);

bytes memory data = abi.encodeWithSignature('abc(uint256',1234)

'Blockchain' 카테고리의 다른 글

PWNME CTF 2025  (0) 2025.03.04
node-guardians proxy-security  (0) 2024.08.13
erc-20  (0) 2024.07.30
smart contract deploy using evm bytecode  (0) 2024.07.26
foundry command list  (0) 2024.07.24