Skip to content

Instantly share code, notes, and snippets.

View mrbrucespringsteen's full-sized avatar

Matt Stephenson mrbrucespringsteen

  • Planck
  • New York
View GitHub Profile
@mrbrucespringsteen
mrbrucespringsteen / amulet.ts
Last active September 9, 2021 23:01 — forked from shrugs/amulet.ts
amulet verification code
import { utils } from 'ethers'
export interface Amulet {
value: string;
hash: string;
count: number;
}
const getAmuletCount = (hash: string): number => {
const matches = hash.match(/(8)\1*/g);