From 72ca6ab8507c32285b9ef71237e9c87879221740 Mon Sep 17 00:00:00 2001 From: Josh Hannan Date: Tue, 14 Jan 2025 11:07:23 -0600 Subject: [PATCH] move type construction out of loop --- lib/go/templates/internal/assets/assets.go | 6 ++-- transactions/generic_destroy_nft.cdc | 32 +++++++++++----------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/lib/go/templates/internal/assets/assets.go b/lib/go/templates/internal/assets/assets.go index 7ce4021..828d47f 100644 --- a/lib/go/templates/internal/assets/assets.go +++ b/lib/go/templates/internal/assets/assets.go @@ -1,7 +1,7 @@ // Code generated by go-bindata. DO NOT EDIT. // sources: // transactions/destroy_nft.cdc (1.542kB) -// transactions/generic_destroy_nft.cdc (4.285kB) +// transactions/generic_destroy_nft.cdc (4.225kB) // transactions/generic_transfer_with_address.cdc (4.529kB) // transactions/generic_transfer_with_address_and_type.cdc (4.552kB) // transactions/generic_transfer_with_paths.cdc (2.868kB) @@ -116,7 +116,7 @@ func transactionsDestroy_nftCdc() (*asset, error) { return a, nil } -var _transactionsGeneric_destroy_nftCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xa4\x57\x5d\x6f\xdb\x36\x17\xbe\xf7\xaf\x38\x11\xf0\xb6\x12\xe0\x2a\x8d\xd3\x77\x49\x8c\x38\x5d\x9a\x2c\x43\x2e\x6a\x0c\xa9\xdb\x5e\x0c\xbb\xa0\xa5\x63\x9b\xab\x44\x6a\xe4\x91\x1d\x2f\xc8\x7f\x1f\x48\x8a\xd6\x57\x12\xb7\x9b\x2f\x02\x47\xe2\x79\xce\x73\xbe\x1e\x1e\x1f\x1e\x1e\xc2\x6c\xc5\x35\x90\x62\x42\xb3\x84\xb8\x14\xb0\xe1\xb4\x4a\x15\xdb\x68\x90\x02\x41\x2a\xc8\xa5\x42\x98\xde\xcc\x34\x2c\x94\xcc\x81\x56\x08\x9a\x2f\x05\x2a\x0d\x89\xcc\x32\x74\x66\x4c\xa4\x90\xa2\x26\x25\xb7\xda\x9c\xc9\x07\x0e\xbd\x32\xcd\x4b\x4d\xc0\xb2\x0c\xe6\x08\x72\xe1\x40\x58\x8e\x40\xdb\x02\x07\xf6\xe8\x6d\x5e\x48\x45\x1a\x48\x82\xc2\x22\x63\x09\x5a\x2a\x10\x58\xaf\x0f\x97\x69\xaa\x50\xeb\xc7\x60\xc0\xed\x41\x08\xa6\x52\xdc\x94\x62\xc9\xe7\x19\xce\xe4\x37\x14\xf5\x9b\x8f\x48\x2c\x65\xc4\xbe\x70\xdc\xe8\xfa\xf1\x87\x52\x09\x54\x81\x73\xf7\x73\xc1\x14\xcb\x21\x91\x82\x14\x4b\xa8\x82\x1f\x5b\xc6\xcc\xfd\xe3\x89\xfa\x33\xb0\x90\xca\x3e\xb0\x11\x6d\x65\x09\x1b\x26\xc8\x10\xae\x02\xb7\xc0\xcf\x7d\x7e\xb9\x67\x79\x91\xe1\x18\x6e\xa4\x82\x99\x2c\xe0\xd3\x4a\x12\x48\x01\x39\xe3\x42\x20\x0d\xe1\xed\xfd\xdb\xf9\x88\x1d\x8f\xce\xce\x92\xe4\xf4\xff\x27\x38\x3a\x7b\x8a\xe9\x94\xe5\xe8\x68\x0a\x93\xc0\x1f\xe5\x18\x3f\x4f\x72\xc7\x30\x98\xc9\xc2\xb0\x0b\x86\x10\x5c\x66\xd9\x35\xdb\x06\x43\x40\x4a\x9a\x74\xc4\x82\x66\xdb\x02\x9f\x66\x33\xbd\x99\xd9\xca\xfe\x18\x81\xb3\xb3\xff\x79\x00\xe2\x39\x02\x27\xe0\x1a\x82\xe9\xcd\x2c\x68\x7a\xe6\xa9\x1e\xc3\xa5\x00\xa6\x14\xdb\x1a\x83\xdb\xeb\x86\xdf\x2a\x68\x59\x66\x29\x64\xfc\x1b\x36\xcb\x63\x51\xee\xaa\xe6\x42\x96\xac\x80\x0b\x4d\x4c\x24\x3b\xe2\xd6\x83\x06\x36\x97\xeb\xaa\xfd\xcc\xd3\x35\xcb\x4a\x34\x5d\xcd\xa8\x15\x51\xa9\xd1\x42\x56\x89\x83\xf0\xab\xb1\xf0\xb5\x8d\xc6\xf6\x65\x63\xb6\xc2\x5e\xb7\xf5\x4b\x3e\xec\x14\xba\x51\x8b\x56\xca\x6d\x5a\x86\x2e\x19\xbf\x1f\xbd\x3b\x3e\x3e\x19\xc2\xf1\xf1\xc9\xe8\x74\x34\x84\xe3\x93\xd1\xe8\xe4\xe8\xe8\x8f\x08\x1e\x06\x83\x17\xfd\x57\x5f\xba\x4e\x3f\x91\xe2\x62\xd9\xf1\xe8\x1f\x3a\x97\x9f\x6f\x05\xfd\xf4\xce\xb9\x30\xc5\x33\xa1\x4e\x6f\x66\x57\x3b\x45\xb8\x66\xc4\x40\x93\x2a\x13\x9b\xab\x25\x12\x14\x8c\x56\x4e\x45\xac\x49\x86\xd4\x50\x10\x73\x7e\x0c\xad\xd1\x8d\x7b\x80\xb5\xaf\x3b\x5c\xa0\x42\x53\x3a\x92\xb6\x48\x72\x23\x50\xbd\x6e\x69\x52\x5d\xfa\x5a\xbf\x76\x9e\xbd\xce\xdd\xe1\x62\x0c\xac\xa4\x55\xd8\x15\x94\xf8\x6b\x75\x24\x82\x57\x0f\xbd\x97\x35\xb1\x47\xc7\xaa\x50\x58\x30\x85\xa1\x13\xc7\x0a\xf3\x83\x54\x4a\x6e\xbe\x98\x06\x8a\xe0\xd5\x65\x92\xc8\x52\x90\x49\x9a\x6f\xfa\xc3\x43\x70\x67\x80\x81\xea\xc6\x24\x16\x54\x4f\x76\x8a\x45\x26\xb7\x98\xfa\x97\x05\xd3\x1a\x53\x60\x0e\x73\x07\x68\x62\x53\xa8\x65\xb6\x46\x75\x87\x0b\x98\x98\xd4\x57\x8e\xbb\x0d\x10\x0d\x9a\xf3\x17\xfb\xb7\x3a\x9e\x5b\x4a\xe7\xfd\xb0\x1f\x2f\x42\x61\xbb\xa1\xd9\x30\x6d\x18\xf3\x79\xff\x1e\x0a\x26\x78\x12\x06\x57\x76\x12\x85\x24\x70\x98\xd0\x45\xec\x47\xed\xa1\x63\xf8\xc8\xbe\x21\xe8\x52\xa1\x0b\x58\xc9\x35\x4f\x31\xad\x53\x62\x35\x27\xe8\x79\x6f\x87\x94\xb0\x3a\x6e\xcb\xd6\x3f\x0c\xec\xa5\xe5\xc5\x3e\x88\xba\x87\xab\x24\xc5\x24\x5d\xeb\x87\x51\xd3\x54\x19\xa2\x4a\x61\x42\x07\x41\x14\x0d\x9a\x05\xfd\xac\xd1\x89\x45\x2b\x34\x85\xa4\x38\xae\xd1\x2b\x55\x67\x54\xd6\x1c\x37\xb0\x43\xd1\x98\x2d\xe2\xf6\x70\xc0\xa4\x59\xd7\xb8\xfa\x7e\x55\x91\x35\x03\x13\x9a\x67\xa5\x4a\xd0\x0c\xed\x18\x04\xcf\x86\x16\xd6\xfd\x6b\xfe\x9e\xef\x99\xaf\x8b\x30\x8a\x80\xe9\x83\x7d\x73\xf8\x7e\xb0\xaf\xda\x15\xbd\x67\x02\x8d\xed\x95\x11\xec\x29\x4f\x5d\x67\xc4\xd4\x6e\x06\xdc\xe8\x6c\x8e\x46\x7e\x9f\x4c\xa2\xa7\xed\xb2\xc9\x05\x48\x95\xa2\x32\x96\x78\x8f\x49\x49\x26\xf9\xed\x7d\xa7\x5b\xbb\xf9\xb3\xc3\xe8\xe6\xfa\xb5\xb6\xb7\x5b\x5d\x9a\x76\xc9\x1a\xaa\x02\x93\xca\x24\xd6\x24\x15\x5b\xa2\x9f\xaa\xff\x26\x36\x17\x61\xaf\xdf\x8d\xae\x8d\x9f\x6a\x19\xef\xf9\x37\x46\xab\x96\x55\xd4\xa8\xd9\x6c\x17\x1b\xa4\x12\xb5\xad\x9e\xb1\x43\x60\x2f\xcc\xd6\x93\xa5\xdb\x7b\x3a\x80\x3a\x12\x90\xf3\x3f\x31\x21\x60\x54\xc9\x99\x59\xf6\xf6\x43\xec\x09\xb3\x39\xad\xfb\xe9\x34\x62\xb7\x1b\x2a\x17\x9c\x38\xcb\xf8\xdf\x76\x4a\xb9\xf2\xea\xea\x77\x01\xde\xba\x5f\x16\x5c\x69\x37\xfd\x06\xb4\xba\x06\x7c\xa3\x3d\xb4\xda\x8a\x13\x2a\x66\xdb\x4f\xc9\x72\xe9\xd6\x0a\x9e\x6a\xab\x40\xf3\x52\x09\xb7\x8e\x48\x81\x3b\x23\xb3\xc8\xf1\xd4\xf4\xb0\x39\xd7\x40\x33\x1f\xbe\xe8\xb5\x5b\xd5\x5d\xd3\x9b\x59\xc8\xd3\x08\x26\x13\x33\xff\xf0\x60\x87\x88\x8b\x12\x3d\x3f\xff\x31\xf7\x04\x61\x5e\x98\x6e\x3e\x7f\xd3\x87\xf3\xdf\x43\xff\xe5\xf6\x7a\x0c\x3c\x8d\xda\x28\x87\x87\xf0\x2b\xba\x02\x6a\x9b\x76\xb3\xbc\x2b\xd4\x28\x88\xb9\x22\xbb\xc5\xca\xab\xac\x01\x93\xa5\x33\x78\x7b\xdf\x82\x5a\x33\xe5\x8f\xb9\x0a\xc2\xa4\xbb\x9e\x37\x8a\xdb\x4d\x47\xcb\x32\xce\x50\x2c\x69\x65\x92\x70\x74\xda\xb8\x6c\xfd\xa7\xeb\xa6\x6d\xac\x33\x9e\x60\xe8\x86\x6a\x34\x84\xb2\x98\xc9\x31\x1c\x9d\xb6\x5d\x3e\xf6\x93\xb9\x2d\xd0\x21\xf8\x5d\x09\x26\x10\x5c\xc6\x3b\x95\x6b\x79\xa9\x65\x2e\xee\xdf\x3c\x6d\x1d\x6c\x1c\x68\x2c\x64\xd1\x93\x04\x60\x02\x57\x32\x2f\xa4\xe6\x64\x6f\x81\xb0\x66\xd5\x36\x30\xcb\x83\xa2\xbe\x96\x58\x90\x03\xdb\x3c\xc3\xde\xcb\x1c\xb5\x66\x4b\xb3\x7d\xd6\x42\x9f\x28\x34\x8d\xcd\x9c\xa5\xa9\x6d\xf7\x27\xc9\x9e\x5b\xfa\xdf\x2a\x49\xfb\xf2\xde\x6b\xd0\xce\xfe\x7e\xfc\x83\x0e\x66\xa7\xf1\x9f\xcd\x9f\x1b\xa9\x78\x89\xb6\x52\xa1\x9d\x44\x93\x9a\x83\x97\xd2\x69\x74\xc8\xe6\xcf\xfe\x72\x32\xab\xc3\x86\xe9\xdd\x8a\xda\xda\x64\xcf\xf7\x67\xb2\xc7\x21\xe6\x29\x0a\xe2\x0b\x8e\xea\x3b\x22\xbf\x30\x3f\xbb\x4c\x69\xc9\xb3\xda\x31\x52\xf8\x57\x89\x9a\x30\x85\xf3\xef\x48\x79\xa3\xf7\x6a\xf0\xf8\xe5\xbc\xba\x1f\xe9\xb1\xd1\xc4\xf0\xfc\x4d\x15\x49\x6d\xf1\x58\x49\xed\xe3\xe0\x9f\x00\x00\x00\xff\xff\xf5\x33\x8b\x1c\xbd\x10\x00\x00" +var _transactionsGeneric_destroy_nftCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xa4\x57\x5b\x6f\xdb\x36\x14\x7e\xf7\xaf\x38\x11\xb0\x56\x02\x5c\xa5\x71\xba\x25\x31\xe2\x74\x69\xb2\x0c\x79\xa8\x31\xa4\x6e\xfb\x30\xec\x81\x96\x8e\x6d\xae\x12\xa9\x91\x47\x76\xbc\x20\xff\x7d\x20\x29\x5a\xb7\x24\x6e\x31\x3d\x18\xb2\x74\x2e\xdf\xb9\x7d\x3c\x3a\x3c\x3c\x84\xd9\x8a\x6b\x20\xc5\x84\x66\x09\x71\x29\x60\xc3\x69\x95\x2a\xb6\xd1\x20\x05\x82\x54\x90\x4b\x85\x30\xbd\x99\x69\x58\x28\x99\x03\xad\x10\x34\x5f\x0a\x54\x1a\x12\x99\x65\xe8\xd4\x98\x48\x21\x45\x4d\x4a\x6e\xb5\x91\xc9\x07\xce\x7a\xa5\x9a\x97\x9a\x80\x65\x19\xcc\x11\xe4\xc2\x19\x61\x39\x02\x6d\x0b\x1c\x58\xd1\xdb\xbc\x90\x8a\x34\x90\x04\x85\x45\xc6\x12\xb4\x50\x20\xb0\x5e\x1f\x2e\xd3\x54\xa1\xd6\x8f\xc1\x80\x5b\x41\x08\xa6\x52\xdc\x94\x62\xc9\xe7\x19\xce\xe4\x37\x14\xf5\x9b\x8f\x48\x2c\x65\xc4\xbe\x70\xdc\xe8\xfa\xf1\x87\x52\x09\x54\x81\x73\xf7\x6b\xc1\x14\xcb\x21\x91\x82\x14\x4b\xa8\x32\x3f\xb6\x88\x99\xfb\xe3\x81\x7a\x19\x58\x48\x65\x1f\xd8\x88\xb6\xb2\x84\x0d\x13\x64\x00\x57\x81\x5b\xc3\xcf\x5d\xbf\xdd\xb3\xbc\xc8\x70\x0c\x37\x52\xc1\x4c\x16\xf0\x69\x25\x09\xa4\x80\x9c\x71\x21\x90\x86\xf0\xf6\xfe\xed\x7c\xc4\x8e\x47\x67\x67\x49\x72\xfa\xf3\x09\x8e\xce\x9e\x42\x3a\x65\x39\x3a\x98\xc2\x24\xf0\x47\x31\xc6\xcf\x83\xdc\x21\x0c\x66\xb2\x30\xe8\x82\x21\x04\x97\x59\x76\xcd\xb6\xc1\x10\x90\x92\x26\x1c\xb1\xa0\xd9\xb6\xc0\xa7\xd1\x4c\x6f\x66\xb6\xb2\x3f\x06\xe0\xec\xec\x27\x6f\x80\x78\x8e\xc0\x09\xb8\x86\x60\x7a\x33\x0b\x9a\x9e\x79\xaa\xc7\x70\x29\x80\x29\xc5\xb6\x46\xe1\xf6\xba\xe1\xb7\x0a\x5a\x96\x59\x0a\x19\xff\x86\xcd\xf2\x58\x2b\x77\x55\x73\x21\x4b\x56\xc0\x85\x26\x26\x92\x1d\x70\xeb\x41\x03\x9b\xcb\x75\xd5\x7e\xe6\xe9\x9a\x65\x25\x9a\xae\x66\xd4\x8a\xa8\xd4\x68\x4d\x56\x89\x83\xf0\xab\xd1\xf0\xb5\x8d\xc6\xf6\x65\x63\xb6\xc2\x5e\xb7\xf5\x4b\x3e\xec\x14\xba\x51\x8b\x56\xca\x6d\x5a\x86\x2e\x19\x7f\x1e\xbd\x3b\x3e\x3e\x19\xc2\xf1\xf1\xc9\xe8\x74\x34\x84\xe3\x93\xd1\xe8\xe4\xe8\xe8\xaf\x08\x1e\x06\x83\x17\xfd\x57\x37\x5d\xa7\x9f\x48\x71\xb1\xec\x78\xf4\x0f\x9d\xcb\xcf\xb7\x82\x7e\x79\xe7\x5c\x98\xe2\x99\x50\xa7\x37\xb3\xab\x1d\x23\x5c\x33\x62\xa0\x49\x95\x89\xcd\xd5\x12\x09\x0a\x46\x2b\xc7\x22\x56\x25\x43\x6a\x30\x88\x91\x1f\x43\x6b\x74\xe3\x9e\xc1\xda\xd7\x1d\x2e\x50\xa1\x29\x1d\x49\x5b\x24\xb9\x11\xa8\x5e\xb7\x38\xa9\x2e\x7d\xcd\x5f\x3b\xcf\x9e\xe7\xee\x70\x31\x06\x56\xd2\x2a\xec\x12\x4a\xfc\xb5\x12\x89\xe0\xd5\x43\xef\x65\x0d\xec\xd1\xa1\x2a\x14\x16\x4c\x61\xe8\xc8\xb1\xb2\xf9\x41\x2a\x25\x37\x5f\x4c\x03\x45\xf0\xea\x32\x49\x64\x29\xc8\x24\xcd\x37\xfd\xe1\x21\x38\x19\x60\xa0\xba\x31\x89\x05\xd5\x93\x9d\x62\x91\xc9\x2d\xa6\xfe\x65\xc1\xb4\xc6\x14\x98\xb3\xb9\x33\x68\x62\x53\xa8\x65\xb6\x46\x75\x87\x0b\x98\x98\xd4\x57\x8e\xbb\x0d\x10\x0d\x9a\xf3\x17\xfb\xb7\x3a\x9e\x5b\x48\xe7\xfd\xb0\x1f\x2f\x42\x61\xbb\xa1\xd9\x30\x6d\x33\xe6\x7a\xff\x1e\x0a\x26\x78\x12\x06\x57\x76\x12\x85\x24\x70\x36\xa1\x6b\xb1\x1f\xb5\x37\x1d\xc3\x47\xf6\x0d\x41\x97\x0a\x5d\xc0\x4a\xae\x79\x8a\x69\x9d\x12\xcb\x39\x41\xcf\x7b\x3b\xa4\x84\xd5\x71\x5b\xb4\xfe\x61\x60\x0f\x2d\x4f\xf6\x41\xd4\x15\xae\x92\x14\x93\x74\xad\x1f\x46\x4d\x55\x65\x80\x2a\x85\x09\x1d\x04\x51\x34\x68\x16\xf4\xb3\x46\x47\x16\xad\xd0\x14\x92\xe2\xb8\x46\xcf\x54\x9d\x51\x59\x73\xdc\xc0\xce\x8a\xc6\x6c\x11\xb7\x87\x03\x26\xcd\xba\xc6\xd5\xfd\x55\x05\xd6\x0c\x4c\x68\x9e\x95\x2a\x41\x33\xb4\x63\x10\x3c\x1b\x5a\xb3\xee\xaf\xf9\x3d\xdf\x33\x5f\x17\x61\x14\x01\xd3\x07\xfb\xe6\xf0\xfd\x60\x5f\xb5\x2b\x78\xcf\x04\x1a\xdb\x23\x23\xd8\x53\x9e\xba\xce\x88\xa9\xdd\x0c\xb8\xe1\xd9\x1c\x0d\xfd\x3e\x99\x44\x0f\xdb\x65\x93\x0b\x90\x2a\x45\x65\x34\xf1\x1e\x93\x92\x4c\xf2\xdb\xfb\x4e\xb7\x76\xf3\x67\x87\xd1\xcd\xf5\x6b\x6d\x4f\xb7\xba\x34\xed\x92\x35\x58\x05\x26\x95\x4a\xac\x49\x2a\xb6\x44\x3f\x55\xff\x8f\x6c\x2e\xc2\x5e\xbf\x1b\x5e\x1b\x3f\xd5\x32\xde\xf3\x1f\x8c\x56\x2d\xad\xa8\x51\xb3\xd9\x2e\x36\x48\x25\x6a\x5b\x3d\xa3\x87\xc0\x5e\x98\xad\x27\x4b\xb7\x57\x3a\x80\x3a\x12\x90\xf3\xbf\x31\x21\x60\x54\xd1\x99\x59\xf6\xf6\x9b\xd8\x13\x66\x73\x5a\xf7\xc3\x69\xc4\x6e\x37\x54\x2e\x38\x71\x96\xf1\x7f\xed\x94\x72\xe5\xd9\xd5\xef\x02\xbc\x75\xbe\x2c\xb8\xd2\x6e\xfa\x8d\xd1\xea\x18\xf0\x8d\xf6\xd0\x6a\xab\xdf\xd1\x45\xa9\x2d\x36\xb3\xe1\x2a\xd4\x28\x88\xb9\x4c\xb8\xed\xc3\x53\x91\x71\x26\x4b\xa7\xf0\xf6\x7e\x67\x66\xcd\x94\x17\x71\x21\xc2\xa4\xbb\xbf\x36\xa2\xdf\xa9\xf1\x45\x5b\x2b\xce\x50\x2c\x69\x05\x93\x09\x1c\x9d\x36\x4e\x22\x73\x75\xcd\xb7\x15\x75\xc6\x13\x0c\x5d\xb7\x8d\x86\x50\x16\x33\x39\x86\xa3\xd3\xda\xd5\x63\xeb\x14\x32\x1b\xa0\xd3\xf4\xcb\x03\x4c\x20\xb8\x8c\x77\x63\xdf\xb2\x5e\xcf\x7d\xdc\xa7\xe2\x36\x31\x34\x04\x1a\x1b\x4a\xd4\x73\x0e\x13\xb8\x92\x79\x21\x35\x27\x4b\x89\x61\x8d\xa8\x16\x36\xa7\xa8\xa2\xf6\x50\x59\xe5\x83\x89\x65\xd0\xd6\x8b\x1c\xb5\x66\x4b\xb3\x7e\xd5\x4c\x97\x28\x64\x64\x86\xc5\x6a\x99\xba\x75\x77\xf2\x17\x8e\xa9\xef\x1f\xa3\xe7\x4e\xad\x17\x85\xdb\x19\x7e\xd9\xee\x41\xc3\x56\x9b\x13\x39\xa1\x62\x96\x3b\x95\x2c\x97\x6e\x27\xe6\xa9\xb6\x40\xe6\xa5\x12\x6e\x97\x96\x02\x77\x4a\xe6\x2b\x84\xa7\x86\x80\x8d\x5c\x63\x14\xc0\x35\x64\x97\x2b\x2b\x6a\x9c\xde\xcc\x42\x9e\x46\xa6\x35\x05\xcf\xe0\xc1\xa6\x90\x8b\x12\xfd\x70\xb5\x2a\x8c\x79\x61\xa8\xf8\xfc\x4d\xdf\x9c\xbf\x0f\xfd\xcd\xed\xf5\x18\x78\x1a\xb5\xad\x3c\x55\x7a\x73\x55\x96\xe3\x25\xda\xe6\x0a\x2d\x20\x53\xdd\x83\x61\x4f\xb6\xee\x08\xc3\x25\xb6\x05\xec\xd7\x8f\x39\xfe\x37\x4c\xef\xd6\xcc\xd6\x36\x7a\xbe\x9f\x57\x7b\x18\x62\x9e\xa2\x20\xbe\xe0\xa8\xbe\x83\xd8\x2e\xcc\xa7\x93\xe9\x4e\xf2\xa8\x76\x88\x14\xfe\x53\xa2\x26\x4c\xe1\xfc\x3b\xe8\xb6\x31\x32\xb5\xf1\xb8\xa3\xd8\xc9\xab\xfb\xd0\x8e\x4d\x6b\x84\xe7\x6f\xaa\x48\xba\x2c\xf1\x38\x78\x1c\xfc\x17\x00\x00\xff\xff\xb0\xf2\x18\x66\x81\x10\x00\x00" func transactionsGeneric_destroy_nftCdcBytes() ([]byte, error) { return bindataRead( @@ -132,7 +132,7 @@ func transactionsGeneric_destroy_nftCdc() (*asset, error) { } info := bindataFileInfo{name: "transactions/generic_destroy_nft.cdc", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xef, 0xc, 0x5, 0x3a, 0xbc, 0x69, 0x31, 0xb4, 0x92, 0xe0, 0xc9, 0x21, 0x4c, 0xc1, 0xc7, 0x6d, 0x86, 0xba, 0x1b, 0xf0, 0x3d, 0xcd, 0xfd, 0xef, 0xf5, 0x81, 0x37, 0x7d, 0x52, 0xe9, 0xe4, 0x69}} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x3b, 0xf4, 0xfe, 0xa, 0x70, 0xce, 0x21, 0x9f, 0x65, 0xc1, 0x7, 0x7a, 0x90, 0x5f, 0x9a, 0x75, 0xd9, 0x9b, 0x7, 0x75, 0x52, 0x5c, 0xed, 0x8e, 0x8d, 0xce, 0xa8, 0xb6, 0x7f, 0x2, 0xdf, 0xff}} return a, nil } diff --git a/transactions/generic_destroy_nft.cdc b/transactions/generic_destroy_nft.cdc index 5704cc1..8c0e7e9 100644 --- a/transactions/generic_destroy_nft.cdc +++ b/transactions/generic_destroy_nft.cdc @@ -49,6 +49,22 @@ transaction(contractAddress: Address, contractName: String, nftTypeName: String, execute { + // Get the string representation of the address without the 0x + var addressString = contractAddress.toString() + if addressString.length == 18 { + addressString = addressString.slice(from: 2, upTo: 18) + } + let typeString: String = "A.".concat(addressString).concat(".").concat(contractName).concat(".").concat(nftTypeName) + let type = CompositeType(typeString) + assert( + type != nil, + message: "Could not create a type out of the contract name " + .concat(contractName) + .concat(" and address ") + .concat(addressString) + .concat("!") + ) + // iterate through the ids and burn each one for id in ids { @@ -56,22 +72,6 @@ transaction(contractAddress: Address, contractName: String, nftTypeName: String, let tempNFT <- self.withdrawRef.withdraw(withdrawID: id) - // Get the string representation of the address without the 0x - var addressString = contractAddress.toString() - if addressString.length == 18 { - addressString = addressString.slice(from: 2, upTo: 18) - } - let typeString: String = "A.".concat(addressString).concat(".").concat(contractName).concat(".").concat(nftTypeName) - let type = CompositeType(typeString) - assert( - type != nil, - message: "Could not create a type out of the contract name " - .concat(contractName) - .concat(" and address ") - .concat(addressString) - .concat("!") - ) - assert( tempNFT.getType() == type!, message: "The type NFT that was withdrawn to destroy <"