mirror of
https://github.com/luxfi/eoa-contracts.git
synced 2026-10-30 16:58:32 +00:00
14 lines
315 B
Solidity
14 lines
315 B
Solidity
// SPDX-License-Identifier: MIT
|
|
pragma solidity 0.8.17;
|
|
|
|
contract Decoder {
|
|
function decode(
|
|
address to,
|
|
bytes memory data
|
|
) public returns (bytes memory) {
|
|
(bool success, bytes memory result) = to.call(data);
|
|
require(!success, "Call failed");
|
|
return result;
|
|
}
|
|
}
|