Skip to content

Instantly share code, notes, and snippets.

View iam-peekay's full-sized avatar

Preethi Kasireddy iam-peekay

View GitHub Profile
@iam-peekay
iam-peekay / .deps...npm...hardhat...console.sol
Created May 11, 2022 16:26
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity >= 0.4.22 <0.9.0;
library console {
address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67);
function _sendLogPayload(bytes memory payload) private view {
uint256 payloadLength = payload.length;
address consoleAddress = CONSOLE_ADDRESS;
assembly {
@iam-peekay
iam-peekay / .deps...npm...hardhat...console.sol
Created May 7, 2022 23:34
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.13+commit.abaa5c0e.js&optimize=true&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity >= 0.4.22 <0.9.0;
library console {
address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67);
function _sendLogPayload(bytes memory payload) private view {
uint256 payloadLength = payload.length;
address consoleAddress = CONSOLE_ADDRESS;
assembly {
@iam-peekay
iam-peekay / .deps...npm...hardhat...console.sol
Created May 7, 2022 20:05
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.13+commit.abaa5c0e.js&optimize=true&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity >= 0.4.22 <0.9.0;
library console {
address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67);
function _sendLogPayload(bytes memory payload) private view {
uint256 payloadLength = payload.length;
address consoleAddress = CONSOLE_ADDRESS;
assembly {
0x8b651e1bc2dd91430c1a81d446bd0a3b675e4d51
0x9b38b9f7d5d9cac294cf5fb2ca7de25f5a2ea5de
0xb19cae00537646312628bdc1afc72b7e46c0310d
0x04ca6ceFeB15E82Ce3f156f4cD8727571E94b99c
0x8e9aebc1cd7f76ebc092787c1d7075e2ad03c107
0x8e9aebc1cd7f76ebc092787c1d7075e2ad03c107

Keybase proof

I hereby claim:

  • I am iam-peekay on github.
  • I am pr3 (https://keybase.io/pr3) on keybase.
  • I have a public key ASC3UJwqSC9w9lysTMyDuK6h1jNuMjMnt0Ls4GGqbYmSeAo

To claim this, I am signing this object: