Skip to content

Instantly share code, notes, and snippets.

View bluesign's full-sized avatar
💭
another day to flow

Deniz Mert Edincik bluesign

💭
another day to flow
View GitHub Profile
import TestContract from 0xf8d6e0586b0a20c7
transaction {
prepare(acct: AuthAccount) {
let nftTemplateIds : [Int] = [1,2]
let immutableData : {String: AnyStruct} = {
"image" : "https://google.com",
@bluesign
bluesign / main.go
Created October 19, 2021 09:18
Enumerate Storage on persistent emulator
package main
import (
"bytes"
"encoding/binary"
"encoding/hex"
"fmt"
"log"
"strings"
asn1js = require("asn1js")
function hexStringToArrayBuffer(hexString) {
// remove the leading 0x
hexString = hexString.replace(/^0x/, '');
// ensure even number of characters
if (hexString.length % 2 != 0) {
console.log('WARNING: expecting an even number of characters in the hexString');
}
@bluesign
bluesign / NonFungibleToken.cdc
Created September 17, 2021 19:22
NFT Metadata example
pub contract interface NonFungibleToken {
pub var totalSupply: UInt64
pub event ContractInitialized()
pub event Withdraw(id: UInt64, from: Address?)
pub event Deposit(id: UInt64, to: Address?)
pub resource interface INFT {
pub let id: UInt64
@bluesign
bluesign / resourceFix.diff
Created July 17, 2021 10:31
Flow Playground Resources not showing in storage fix
diff --git a/compute/computer.go b/compute/computer.go
index 67d5a01..985a08f 100644
--- a/compute/computer.go
+++ b/compute/computer.go
@@ -97,6 +97,7 @@ func (c *Computer) ExecuteTransaction(
transactionNumber int,
getRegisterDeltas func() ([]*model.RegisterDelta, error),
txBody *flow.TransactionBody,
+ txBodyExtra *flow.TransactionBody,
) (*TransactionResult, error) {

Keybase proof

I hereby claim:

  • I am bluesign on github.
  • I am bluesign (https://keybase.io/bluesign) on keybase.
  • I have a public key ASDJr3E2SJ9qjFkGXwx3g7KybSliZEq-HaiqTRm9L9Jtywo

To claim this, I am signing this object: