Skip to content

Instantly share code, notes, and snippets.

View t8's full-sized avatar
🎯
Focusing

Tate Berenbaum t8

🎯
Focusing
View GitHub Profile
@t8
t8 / NFT.js
Last active April 28, 2022 03:18 — forked from samcamwilliams/Physical-Asset-NFT.js
A Verto-compatible SmartWeave contract for NFTs.
export function handle (state, action) {
let owner = state.owner
const input = action.input
const caller = action.caller
const contact = action.contact
if (input.function === 'transfer') {
const target = input.target
if (!target || (caller === target)) {