Skip to content

Instantly share code, notes, and snippets.

@lwhile
Created February 12, 2022 02:06
Show Gist options
  • Select an option

  • Save lwhile/3403b290844b7d3b350032ada419a5ce to your computer and use it in GitHub Desktop.

Select an option

Save lwhile/3403b290844b7d3b350032ada419a5ce to your computer and use it in GitHub Desktop.
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.0;
contract TestContract {
event TestEvt(uint256 val);
event cstrEvt(address addr);
constructor() {
emit cstrEvt(address(uint160(uint256(keccak256("test")))));
}
function mixin(bytes calldata raw) public returns (bool) {
emit TestEvt(address(this).balance);
return true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment