Skip to content

Instantly share code, notes, and snippets.

View noemk2's full-sized avatar
🎯
Focusing

Noe noemk2

🎯
Focusing
View GitHub Profile
@noemk2
noemk2 / near-borsh-io.md
Created November 18, 2021 04:30 — forked from mfornet/near-borsh-io.md
Borsh I/O in NEAR Smart Contracts

Borsh I/O in NEAR Smart Contracts

Manual encoding single parameter

pub fn set_status_borsh(&mut self, #[serializer(borsh)] message: Vec<u8>) {}

To call this function you need to pass arguments borsh serialized, and those bytes encoded as base64