Skip to content

Commit

Permalink
feat: add the identity precompile
Browse files Browse the repository at this point in the history
  • Loading branch information
hedgar2017 committed Dec 6, 2024
1 parent 9c80958 commit 48e024a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions solidity/simple/system/identity.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//! { "cases": [] }

// SPDX-License-Identifier: MIT OR Apache-2.0

pragma solidity >=0.8.0;

contract Test {
fallback() external {
assembly {
calldatacopy(0, 0, calldatasize())
return(0, calldatasize())
}
}
}

0 comments on commit 48e024a

Please sign in to comment.