Skip to content

Instantly share code, notes, and snippets.

View Onyelaudochukwuka's full-sized avatar
😯
Building

Onyela Udochukwuka Onyelaudochukwuka

😯
Building
View GitHub Profile
@Onyelaudochukwuka
Onyelaudochukwuka / contracts...POE.sol
Last active April 6, 2023 17:18
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.18+commit.87f61d96.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract POE{
bytes32 private hashed;
bytes32 [] public files;
bool private state;
uint private index;
function exists(string memory _poe) external returns (bool){
hashed = keccak256(abi.encodePacked(_poe));