Fatal error : stack overflow

Hi there !

I am working on my OWB project.
It is very similar to NBA TopShot, just more decentralized. The idea is that celebrities could put their digital assets into decks and then people could mint those assets and sell them.

So I took a lot of inspiration from the NBA smart contract and tried to make it possible for anyone to be an admin of his own ecosystem.
Given that when reading the code you can think deck = set in NBA TopShot, memento = Play in NBA TopShot

Problem :
When submitting the transaction2 (to create a deck and put it in the admin resource) I get an error from the emulator : fatal error : stack overflow

**Code : **

Check the readme to reproduce the error.

Error :

time="2020-08-25T21:31:51+07:00" level=debug msg="οΈβœ‰οΈ   Transaction submitted" txID=61a05b64eae029ec37775f1981009c6ceaf3722eda929bb1ef8eed34f1334de0
runtime: goroutine stack exceeds 1000000000-byte limit
runtime: sp=0xc0210e3348 stack=[0xc0210e2000, 0xc0410e2000]
fatal error: stack overflow

runtime stack:
runtime.throw(0x10b7928, 0xe)
        runtime/panic.go:1116 +0x79
runtime.newstack()
        runtime/stack.go:1034 +0x6dc
runtime.morestack()
        runtime/asm_amd64.s:449 +0x97

goroutine 175 [running]:
runtime.mallocgc(0x20, 0x0, 0x10000c000080000, 0x180108)
        runtime/malloc.go:891 +0x9fa fp=0xc0210e3358 sp=0xc0210e3350 pc=0x40d9aa
runtime.growslice(0xec3fc0, 0x0, 0x0, 0x0, 0x1d, 0x0, 0x0, 0xc007ad12f8)
        runtime/slice.go:175 +0x155 fp=0xc0210e33c0 sp=0xc0210e3358 pc=0x44df65
strings.(*Builder).WriteString(...)
        strings/builder.go:123
github.com/onflow/cadence/runtime/interpreter.(*CompositeValue).String(0xc00086cfc0, 0xc0210e3501, 0x2de4268)
        github.com/onflow/cadence@v0.8.0/runtime/interpreter/value.go:5434 +0x78e fp=0xc0210e3500 sp=0xc0210e33c0 pc=0x8f86ee
github.com/onflow/cadence/runtime/interpreter.(*EphemeralReferenceValue).String(0xc000907e20, 0x1038960, 0xc000907e20)
        github.com/onflow/cadence@v0.8.0/runtime/interpreter/value.go:6081 +0x3b fp=0xc0210e3528 sp=0xc0210e3500 pc=0x8fc66b
fmt.(*pp).handleMethods(0xc008dc1ad0, 0x76, 0xc000268501)
        fmt/print.go:630 +0x309 fp=0xc0210e3798 sp=0xc0210e3528 pc=0x4f82a9
fmt.(*pp).printArg(0xc008dc1ad0, 0x1038960, 0xc000907e20, 0x76)
        fmt/print.go:713 +0x1eb fp=0xc0210e3830 sp=0xc0210e3798 pc=0x4f884b
fmt.(*pp).doPrint(0xc008dc1ad0, 0xc0210e39b0, 0x1, 0x1)
        fmt/print.go:1161 +0xff fp=0xc0210e38b8 sp=0xc0210e3830 pc=0x4fd24f
fmt.Sprint(0xc0210e39b0, 0x1, 0x1, 0xc007ad1332, 0x2)
        fmt/print.go:249 +0x59 fp=0xc0210e3910 sp=0xc0210e38b8 pc=0x4f52c9
github.com/onflow/cadence/runtime/interpreter.(*CompositeValue).String(0xc00086d030, 0x1048be0, 0xc00086d030)
        github.com/onflow/cadence@v0.8.0/runtime/interpreter/value.go:5443 +0x40f fp=0xc0210e3a50 sp=0xc0210e3910 pc=0x8f836f
fmt.(*pp).handleMethods(0xc008dc1a00, 0x76, 0xc000268501)
        fmt/print.go:630 +0x309 fp=0xc0210e3cc0 sp=0xc0210e3a50 pc=0x4f82a9
fmt.(*pp).printArg(0xc008dc1a00, 0x1048be0, 0xc00086d030, 0x76)
        fmt/print.go:713 +0x1eb fp=0xc0210e3d58 sp=0xc0210e3cc0 pc=0x4f884b
fmt.(*pp).doPrint(0xc008dc1a00, 0xc0210e3ed8, 0x1, 0x1)
        fmt/print.go:1161 +0xff fp=0xc0210e3de0 sp=0xc0210e3d58 pc=0x4fd24f
fmt.Sprint(0xc0210e3ed8, 0x1, 0x1, 0x1, 0xc000395048)
        fmt/print.go:249 +0x59 fp=0xc0210e3e38 sp=0xc0210e3de0 pc=0x4f52c9
github.com/onflow/cadence/runtime/interpreter.(*DictionaryValue).String(0xc000abc780, 0x1050140, 0xc000abc780)
        github.com/onflow/cadence@v0.8.0/runtime/interpreter/value.go:5688 +0x35a fp=0xc0210e3f18 sp=0xc0210e3e38 pc=0x8fa24a
fmt.(*pp).handleMethods(0xc008dc1930, 0x76, 0xc000268501)
        fmt/print.go:630 +0x309 fp=0xc0210e4188 sp=0xc0210e3f18 pc=0x4f82a9
fmt.(*pp).printArg(0xc008dc1930, 0x1050140, 0xc000abc780, 0x76)
        fmt/print.go:713 +0x1eb fp=0xc0210e4220 sp=0xc0210e4188 pc=0x4f884b
fmt.(*pp).doPrint(0xc008dc1930, 0xc0210e43a0, 0x1, 0x1)
        fmt/print.go:1161 +0xff fp=0xc0210e42a8 sp=0xc0210e4220 pc=0x4fd24f
fmt.Sprint(0xc0210e43a0, 0x1, 0x1, 0xc007ad122a, 0x2)
        fmt/print.go:249 +0x59 fp=0xc0210e4300 sp=0xc0210e42a8 pc=0x4f52c9
github.com/onflow/cadence/runtime/interpreter.(*CompositeValue).String(0xc00086cfc0, 0xc0210e4401, 0x2de4268)
        github.com/onflow/cadence@v0.8.0/runtime/interpreter/value.go:5443 +0x40f fp=0xc0210e4440 sp=0xc0210e4300 pc=0x8f836f
github.com/onflow/cadence/runtime/interpreter.(*EphemeralReferenceValue).String(0xc000907e20, 0x1038960, 0xc000907e20)
        github.com/onflow/cadence@v0.8.0/runtime/interpreter/value.go:6081 +0x3b fp=0xc0210e4468 sp=0xc0210e4440 pc=0x8fc66b
fmt.(*pp).handleMethods(0xc008dc1860, 0x76, 0xc000268501)
        fmt/print.go:630 +0x309 fp=0xc0210e46d8 sp=0xc0210e4468 pc=0x4f82a9
fmt.(*pp).printArg(0xc008dc1860, 0x1038960, 0xc000907e20, 0x76)
        fmt/print.go:713 +0x1eb fp=0xc0210e4770 sp=0xc0210e46d8 pc=0x4f884b
fmt.(*pp).doPrint(0xc008dc1860, 0xc0210e48f0, 0x1, 0x1)
        fmt/print.go:1161 +0xff fp=0xc0210e47f8 sp=0xc0210e4770 pc=0x4fd24f
fmt.Sprint(0xc0210e48f0, 0x1, 0x1, 0xc007ad11f2, 0x2)
        fmt/print.go:249 +0x59 fp=0xc0210e4850 sp=0xc0210e47f8 pc=0x4f52c9
github.com/onflow/cadence/runtime/interpreter.(*CompositeValue).String(0xc00086d030, 0x1048be0, 0xc00086d030)
        github.com/onflow/cadence@v0.8.0/runtime/interpreter/value.go:5443 +0x40f fp=0xc0210e4990 sp=0xc0210e4850 pc=0x8f836f
fmt.(*pp).handleMethods(0xc008dc1790, 0x76, 0xc000268501)
        fmt/print.go:630 +0x309 fp=0xc0210e4c00 sp=0xc0210e4990 pc=0x4f82a9
fmt.(*pp).printArg(0xc008dc1790, 0x1048be0, 0xc00086d030, 0x76)
        fmt/print.go:713 +0x1eb fp=0xc0210e4c98 sp=0xc0210e4c00 pc=0x4f884b
fmt.(*pp).doPrint(0xc008dc1790, 0xc0210e4e18, 0x1, 0x1)
        fmt/print.go:1161 +0xff fp=0xc0210e4d20 sp=0xc0210e4c98 pc=0x4fd24f
fmt.Sprint(0xc0210e4e18, 0x1, 0x1, 0x1, 0xc000395048)
        fmt/print.go:249 +0x59 fp=0xc0210e4d78 sp=0xc0210e4d20 pc=0x4f52c9
github.com/onflow/cadence/runtime/interpreter.(*DictionaryValue).String(0xc000abc780, 0x1050140, 0xc000abc780)
        github.com/onflow/cadence@v0.8.0/runtime/interpreter/value.go:5688 +0x35a fp=0xc0210e4e58 sp=0xc0210e4d78 pc=0x8fa24a
fmt.(*pp).handleMethods(0xc008dc16c0, 0x76, 0xc000268501)
        fmt/print.go:630 +0x309 fp=0xc0210e50c8 sp=0xc0210e4e58 pc=0x4f82a9
fmt.(*pp).printArg(0xc008dc16c0, 0x1050140, 0xc000abc780, 0x76)
        fmt/print.go:713 +0x1eb fp=0xc0210e5160 sp=0xc0210e50c8 pc=0x4f884b
fmt.(*pp).doPrint(0xc008dc16c0, 0xc0210e52e0, 0x1, 0x1)
        fmt/print.go:1161 +0xff fp=0xc0210e51e8 sp=0xc0210e5160 pc=0x4fd24f
fmt.Sprint(0xc0210e52e0, 0x1, 0x1, 0xc007ad1148, 0x2)
        fmt/print.go:249 +0x59 fp=0xc0210e5240 sp=0xc0210e51e8 pc=0x4f52c9
github.com/onflow/cadence/runtime/interpreter.(*CompositeValue).String(0xc00086cfc0, 0x1, 0x2de4268)
        github.com/onflow/cadence@v0.8.0/runtime/interpreter/value.go:5443 +0x40f fp=0xc0210e5380 sp=0xc0210e5240 pc=0x8f836f
github.com/onflow/cadence/runtime/interpreter.(*EphemeralReferenceValue).String(0xc000907e20, 0x1038960, 0xc000907e20)
        github.com/onflow/cadence@v0.8.0/runtime/interpreter/value.go:6081 +0x3b fp=0xc0210e53a8 sp=0xc0210e5380 pc=0x8fc66b
fmt.(*pp).handleMethods(0xc008dc15f0, 0x76, 0xc000268501)
        fmt/print.go:630 +0x309 fp=0xc0210e5618 sp=0xc0210e53a8 pc=0x4f82a9
fmt.(*pp).printArg(0xc008dc15f0, 0x1038960, 0xc000907e20, 0x76)
        fmt/print.go:713 +0x1eb fp=0xc0210e56b0 sp=0xc0210e5618 pc=0x4f884b
fmt.(*pp).doPrint(0xc008dc15f0, 0xc0210e5830, 0x1, 0x1)
        fmt/print.go:1161 +0xff fp=0xc0210e5738 sp=0xc0210e56b0 pc=0x4fd24f
fmt.Sprint(0xc0210e5830, 0x1, 0x1, 0x20, 0x22)
        fmt/print.go:249 +0x59 fp=0xc0210e5790 sp=0xc0210e5738 pc=0x4f52c9
github.com/onflow/cadence/runtime/interpreter.(*CompositeValue).String(0xc00086d030, 0x1048be0, 0xc00086d030)
        github.com/onflow/cadence@v0.8.0/runtime/interpreter/value.go:5443 +0x40f fp=0xc0210e58d0 sp=0xc0210e5790 pc=0x8f836f
fmt.(*pp).handleMethods(0xc008dc1520, 0x76, 0xc000268501)
        fmt/print.go:630 +0x309 fp=0xc0210e5b40 sp=0xc0210e58d0 pc=0x4f82a9
fmt.(*pp).printArg(0xc008dc1520, 0x1048be0, 0xc00086d030, 0x76)
        fmt/print.go:713 +0x1eb fp=0xc0210e5bd8 sp=0xc0210e5b40 pc=0x4f884b
fmt.(*pp).doPrint(0xc008dc1520, 0xc0210e5d58, 0x1, 0x1)
        fmt/print.go:1161 +0xff fp=0xc0210e5c60 sp=0xc0210e5bd8 pc=0x4fd24f
fmt.Sprint(0xc0210e5d58, 0x1, 0x1, 0x1, 0xc000395048)
        fmt/print.go:249 +0x59 fp=0xc0210e5cb8 sp=0xc0210e5c60 pc=0x4f52c9
github.com/onflow/cadence/runtime/interpreter.(*DictionaryValue).String(0xc000abc780, 0x1050140, 0xc000abc780)
        github.com/onflow/cadence@v0.8.0/runtime/interpreter/value.go:5688 +0x35a fp=0xc0210e5d98 sp=0xc0210e5cb8 pc=0x8fa24a
fmt.(*pp).handleMethods(0xc008dc1450, 0x76, 0xc000268501)
        fmt/print.go:630 +0x309 fp=0xc0210e6008 sp=0xc0210e5d98 pc=0x4f82a9
fmt.(*pp).printArg(0xc008dc1450, 0x1050140, 0xc000abc780, 0x76)
        fmt/print.go:713 +0x1eb fp=0xc0210e60a0 sp=0xc0210e6008 pc=0x4f884b
fmt.(*pp).doPrint(0xc008dc1450, 0xc0210e6220, 0x1, 0x1)
        fmt/print.go:1161 +0xff fp=0xc0210e6128 sp=0xc0210e60a0 pc=0x4fd24f
fmt.Sprint(0xc0210e6220, 0x1, 0x1, 0x40, 0x41)
        fmt/print.go:249 +0x59 fp=0xc0210e6180 sp=0xc0210e6128 pc=0x4f52c9
github.com/onflow/cadence/runtime/interpreter.(*CompositeValue).String(0xc00086cfc0, 0xc0210e6301, 0x2de4268)
        github.com/onflow/cadence@v0.8.0/runtime/interpreter/value.go:5443 +0x40f fp=0xc0210e62c0 sp=0xc0210e6180 pc=0x8f836f
github.com/onflow/cadence/runtime/interpreter.(*EphemeralReferenceValue).String(0xc000907e20, 0x1038960, 0xc000907e20)
        github.com/onflow/cadence@v0.8.0/runtime/interpreter/value.go:6081 +0x3b fp=0xc0210e62e8 sp=0xc0210e62c0 pc=0x8fc66b
fmt.(*pp).handleMethods(0xc008dc1380, 0x76, 0xc000268501)
        fmt/print.go:630 +0x309 fp=0xc0210e6558 sp=0xc0210e62e8 pc=0x4f82a9
fmt.(*pp).printArg(0xc008dc1380, 0x1038960, 0xc000907e20, 0x76)
        fmt/print.go:713 +0x1eb fp=0xc0210e65f0 sp=0xc0210e6558 pc=0x4f884b
fmt.(*pp).doPrint(0xc008dc1380, 0xc0210e6770, 0x1, 0x1)
        fmt/print.go:1161 +0xff fp=0xc0210e6678 sp=0xc0210e65f0 pc=0x4fd24f
fmt.Sprint(0xc0210e6770, 0x1, 0x1, 0xc007ad10ea, 0x2)
        fmt/print.go:249 +0x59 fp=0xc0210e66d0 sp=0xc0210e6678 pc=0x4f52c9
github.com/onflow/cadence/runtime/interpreter.(*CompositeValue).String(0xc00086d030, 0x1048be0, 0xc00086d030)
        github.com/onflow/cadence@v0.8.0/runtime/interpreter/value.go:5443 +0x40f fp=0xc0210e6810 sp=0xc0210e66d0 pc=0x8f836f
fmt.(*pp).handleMethods(0xc008dc12b0, 0x76, 0xc000268501)
        fmt/print.go:630 +0x309 fp=0xc0210e6a80 sp=0xc0210e6810 pc=0x4f82a9
fmt.(*pp).printArg(0xc008dc12b0, 0x1048be0, 0xc00086d030, 0x76)
        fmt/print.go:713 +0x1eb fp=0xc0210e6b18 sp=0xc0210e6a80 pc=0x4f884b
fmt.(*pp).doPrint(0xc008dc12b0, 0xc0210e6c98, 0x1, 0x1)
        fmt/print.go:1161 +0xff fp=0xc0210e6ba0 sp=0xc0210e6b18 pc=0x4fd24f
fmt.Sprint(0xc0210e6c98, 0x1, 0x1, 0x1, 0xc000395048)
        fmt/print.go:249 +0x59 fp=0xc0210e6bf8 sp=0xc0210e6ba0 pc=0x4f52c9
github.com/onflow/cadence/runtime/interpreter.(*DictionaryValue).String(0xc000abc780, 0x1050140, 0xc000abc780)
        github.com/onflow/cadence@v0.8.0/runtime/interpreter/value.go:5688 +0x35a fp=0xc0210e6cd8 sp=0xc0210e6bf8 pc=0x8fa24a
fmt.(*pp).handleMethods(0xc008dc11e0, 0x76, 0xc000268501)
        fmt/print.go:630 +0x309 fp=0xc0210e6f48 sp=0xc0210e6cd8 pc=0x4f82a9
fmt.(*pp).printArg(0xc008dc11e0, 0x1050140, 0xc000abc780, 0x76)
        fmt/print.go:713 +0x1eb fp=0xc0210e6fe0 sp=0xc0210e6f48 pc=0x4f884b
fmt.(*pp).doPrint(0xc008dc11e0, 0xc0210e7160, 0x1, 0x1)
        fmt/print.go:1161 +0xff fp=0xc0210e7068 sp=0xc0210e6fe0 pc=0x4fd24f
fmt.Sprint(0xc0210e7160, 0x1, 0x1, 0x20, 0x23)
        fmt/print.go:249 +0x59 fp=0xc0210e70c0 sp=0xc0210e7068 pc=0x4f52c9
github.com/onflow/cadence/runtime/interpreter.(*CompositeValue).String(0xc00086cfc0, 0x1, 0x2de4268)
        github.com/onflow/cadence@v0.8.0/runtime/interpreter/value.go:5443 +0x40f fp=0xc0210e7200 sp=0xc0210e70c0 pc=0x8f836f
github.com/onflow/cadence/runtime/interpreter.(*EphemeralReferenceValue).String(0xc000907e20, 0x1038960, 0xc000907e20)
        github.com/onflow/cadence@v0.8.0/runtime/interpreter/value.go:6081 +0x3b fp=0xc0210e7228 sp=0xc0210e7200 pc=0x8fc66b
fmt.(*pp).handleMethods(0xc008dc1110, 0x76, 0xc000268501)
        fmt/print.go:630 +0x309 fp=0xc0210e7498 sp=0xc0210e7228 pc=0x4f82a9
fmt.(*pp).printArg(0xc008dc1110, 0x1038960, 0xc000907e20, 0x76)
        fmt/print.go:713 +0x1eb fp=0xc0210e7530 sp=0xc0210e7498 pc=0x4f884b
fmt.(*pp).doPrint(0xc008dc1110, 0xc0210e76b0, 0x1, 0x1)
        fmt/print.go:1161 +0xff fp=0xc0210e75b8 sp=0xc0210e7530 pc=0x4fd24f
fmt.Sprint(0xc0210e76b0, 0x1, 0x1, 0x20, 0x22)
        fmt/print.go:249 +0x59 fp=0xc0210e7610 sp=0xc0210e75b8 pc=0x4f52c9
github.com/onflow/cadence/runtime/interpreter.(*CompositeValue).String(0xc00086d030, 0x1048be0, 0xc00086d030)
        github.com/onflow/cadence@v0.8.0/runtime/interpreter/value.go:5443 +0x40f fp=0xc0210e7750 sp=0xc0210e7610 pc=0x8f836f
fmt.(*pp).handleMethods(0xc008dc1040, 0x76, 0xc000268501)
        fmt/print.go:630 +0x309 fp=0xc0210e79c0 sp=0xc0210e7750 pc=0x4f82a9
fmt.(*pp).printArg(0xc008dc1040, 0x1048be0, 0xc00086d030, 0x76)
        fmt/print.go:713 +0x1eb fp=0xc0210e7a58 sp=0xc0210e79c0 pc=0x4f884b
fmt.(*pp).doPrint(0xc008dc1040, 0xc0210e7bd8, 0x1, 0x1)
        fmt/print.go:1161 +0xff fp=0xc0210e7ae0 sp=0xc0210e7a58 pc=0x4fd24f
fmt.Sprint(0xc0210e7bd8, 0x1, 0x1, 0x1, 0xc000395048)
        fmt/print.go:249 +0x59 fp=0xc0210e7b38 sp=0xc0210e7ae0 pc=0x4f52c9
github.com/onflow/cadence/runtime/interpreter.(*DictionaryValue).String(0xc000abc780, 0x1050140, 0xc000abc780)
        github.com/onflow/cadence@v0.8.0/runtime/interpreter/value.go:5688 +0x35a fp=0xc0210e7c18 sp=0xc0210e7b38 pc=0x8fa24a
fmt.(*pp).handleMethods(0xc008dc0f70, 0x76, 0xc000268501)
        fmt/print.go:630 +0x309 fp=0xc0210e7e88 sp=0xc0210e7c18 pc=0x4f82a9
fmt.(*pp).printArg(0xc008dc0f70, 0x1050140, 0xc000abc780, 0x76)
        fmt/print.go:713 +0x1eb fp=0xc0210e7f20 sp=0xc0210e7e88 pc=0x4f884b
fmt.(*pp).doPrint(0xc008dc0f70, 0xc0210e80a0, 0x1, 0x1)
        fmt/print.go:1161 +0xff fp=0xc0210e7fa8 sp=0xc0210e7f20 pc=0x4fd24f
fmt.Sprint(0xc0210e80a0, 0x1, 0x1, 0xc007ad104a, 0x2)
        fmt/print.go:249 +0x59 fp=0xc0210e8000 sp=0xc0210e7fa8 pc=0x4f52c9
github.com/onflow/cadence/runtime/interpreter.(*CompositeValue).String(0xc00086cfc0, 0xc0210e8101, 0x2de4268)
        github.com/onflow/cadence@v0.8.0/runtime/interpreter/value.go:5443 +0x40f fp=0xc0210e8140 sp=0xc0210e8000 pc=0x8f836f
github.com/onflow/cadence/runtime/interpreter.(*EphemeralReferenceValue).String(0xc000907e20, 0x1038960, 0xc000907e20)
        github.com/onflow/cadence@v0.8.0/runtime/interpreter/value.go:6081 +0x3b fp=0xc0210e8168 sp=0xc0210e8140 pc=0x8fc66b
fmt.(*pp).handleMethods(0xc008dc0ea0, 0x76, 0xc000268501)
        fmt/print.go:630 +0x309 fp=0xc0210e83d8 sp=0xc0210e8168 pc=0x4f82a9
fmt.(*pp).printArg(0xc008dc0ea0, 0x1038960, 0xc000907e20, 0x76)
        fmt/print.go:713 +0x1eb fp=0xc0210e8470 sp=0xc0210e83d8 pc=0x4f884b
fmt.(*pp).doPrint(0xc008dc0ea0, 0xc0210e85f0, 0x1, 0x1)
        fmt/print.go:1161 +0xff fp=0xc0210e84f8 sp=0xc0210e8470 pc=0x4fd24f
fmt.Sprint(0xc0210e85f0, 0x1, 0x1, 0xc007ad0fe2, 0x2)
        fmt/print.go:249 +0x59 fp=0xc0210e8550 sp=0xc0210e84f8 pc=0x4f52c9
github.com/onflow/cadence/runtime/interpreter.(*CompositeValue).String(0xc00086d030, 0x1048be0, 0xc00086d030)
        github.com/onflow/cadence@v0.8.0/runtime/interpreter/value.go:5443 +0x40f fp=0xc0210e8690 sp=0xc0210e8550 pc=0x8f836f
fmt.(*pp).handleMethods(0xc008dc0dd0, 0x76, 0xc000268501)
        fmt/print.go:630 +0x309 fp=0xc0210e8900 sp=0xc0210e8690 pc=0x4f82a9
fmt.(*pp).printArg(0xc008dc0dd0, 0x1048be0, 0xc00086d030, 0x76)
        fmt/print.go:713 +0x1eb fp=0xc0210e8998 sp=0xc0210e8900 pc=0x4f884b
fmt.(*pp).doPrint(0xc008dc0dd0, 0xc0210e8b18, 0x1, 0x1)
        fmt/print.go:1161 +0xff fp=0xc0210e8a20 sp=0xc0210e8998 pc=0x4fd24f
fmt.Sprint(0xc0210e8b18, 0x1, 0x1, 0x1, 0xc000395048)
        fmt/print.go:249 +0x59 fp=0xc0210e8a78 sp=0xc0210e8a20 pc=0x4f52c9
github.com/onflow/cadence/runtime/interpreter.(*DictionaryValue).String(0xc000abc780, 0x1050140, 0xc000abc780)
        github.com/onflow/cadence@v0.8.0/runtime/interpreter/value.go:5688 +0x35a fp=0xc0210e8b58 sp=0xc0210e8a78 pc=0x8fa24a
fmt.(*pp).handleMethods(0xc008dc0d00, 0x76, 0xc000268501)
        fmt/print.go:630 +0x309 fp=0xc0210e8dc8 sp=0xc0210e8b58 pc=0x4f82a9
fmt.(*pp).printArg(0xc008dc0d00, 0x1050140, 0xc000abc780, 0x76)
        fmt/print.go:713 +0x1eb fp=0xc0210e8e60 sp=0xc0210e8dc8 pc=0x4f884b
fmt.(*pp).doPrint(0xc008dc0d00, 0xc0210e8fe0, 0x1, 0x1)
        fmt/print.go:1161 +0xff fp=0xc0210e8ee8 sp=0xc0210e8e60 pc=0x4fd24f
fmt.Sprint(0xc0210e8fe0, 0x1, 0x1, 0x20, 0x23)
        fmt/print.go:249 +0x59 fp=0xc0210e8f40 sp=0xc0210e8ee8 pc=0x4f52c9
github.com/onflow/cadence/runtime/interpreter.(*CompositeValue).String(0xc00086cfc0, 0xc0210e9101, 0x2de4268)
        github.com/onflow/cadence@v0.8.0/runtime/interpreter/value.go:5443 +0x40f fp=0xc0210e9080 sp=0xc0210e8f40 pc=0x8f836f
github.com/onflow/cadence/runtime/interpreter.(*EphemeralReferenceValue).String(0xc000907e20, 0x1038960, 0xc000907e20)
        github.com/onflow/cadence@v0.8.0/runtime/interpreter/value.go:6081 +0x3b fp=0xc0210e90a8 sp=0xc0210e9080 pc=0x8fc66b
created by google.golang.org/grpc.(*Server).serveStreams.func1
        google.golang.org/grpc@v1.30.0/server.go:832 +0x20b

goroutine 1 [semacquire, 1 minutes]:
sync.runtime_Semacquire(0xc0000873f8)
        runtime/sema.go:56 +0x49
sync.(*WaitGroup).Wait(0xc0000873f0)
        sync/waitgroup.go:130 +0x6b
github.com/psiemens/graceland.(*Group).Start(0xc000009b80, 0x2e21cf0, 0xc000554250)
        github.com/psiemens/graceland@v1.0.0/graceland.go:97 +0x16b
github.com/dapperlabs/flow-emulator/server.(*EmulatorServer).Start(0xc000159490)
        github.com/dapperlabs/flow-emulator@v0.8.0/server/server.go:141 +0x340
github.com/dapperlabs/flow-emulator/cmd/emulator/start.Cmd.func1(0xc0001bd080, 0xc000098700, 0x0, 0x8)
        github.com/dapperlabs/flow-emulator@v0.8.0/cmd/emulator/start/start.go:110 +0x71a
github.com/spf13/cobra.(*Command).execute(0xc0001bd080, 0xc00012c030, 0x8, 0xd, 0xc0001bd080, 0xc00012c030)
        github.com/spf13/cobra@v0.0.7/command.go:842 +0x2a4
github.com/spf13/cobra.(*Command).ExecuteC(0x1d81960, 0x0, 0x0, 0xc0000440b8)
        github.com/spf13/cobra@v0.0.7/command.go:943 +0x31e
github.com/spf13/cobra.(*Command).Execute(...)
        github.com/spf13/cobra@v0.0.7/command.go:883
main.main()
        github.com/dapperlabs/flow-cli/cmd/flow/main.go:38 +0x34

goroutine 35 [select, 1 minutes]:
github.com/desertbit/timer.timerRoutine()
        github.com/desertbit/timer@v0.0.0-20180107155436-c41aec40b27f/timers.go:119 +0x30b
created by github.com/desertbit/timer.init.0
        github.com/desertbit/timer@v0.0.0-20180107155436-c41aec40b27f/timers.go:15 +0x3c

goroutine 52 [select]:
github.com/dapperlabs/flow-emulator/server.(*LivenessTicker).Start(0xc000303d20, 0x441afd, 0x1221960)
        github.com/dapperlabs/flow-emulator@v0.8.0/server/liveness.go:28 +0xe8
github.com/psiemens/graceland.(*Group).Start.func1(0xc000009b80, 0xc0000873f0, 0x0, 0x1384be0, 0xc000303d20)
        github.com/psiemens/graceland@v1.0.0/graceland.go:71 +0x3c
created by github.com/psiemens/graceland.(*Group).Start
        github.com/psiemens/graceland@v1.0.0/graceland.go:70 +0x111

goroutine 53 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x28e21098, 0x72, 0x137c320)
        runtime/netpoll.go:203 +0x5c
internal/poll.(*pollDesc).wait(0xc0001735c8, 0x72, 0x1b6a900, 0x0, 0x0)
        internal/poll/fd_poll_runtime.go:87 +0x4c
internal/poll.(*ioSrv).ExecIO(0x1d8a468, 0xc000173418, 0xc0003c4aa0, 0x1, 0x0, 0x164)
        internal/poll/fd_windows.go:228 +0x121
internal/poll.(*FD).acceptOne(0xc000173400, 0x164, 0xc0006f00f0, 0x2, 0x2, 0xc000173418, 0x98000004, 0xc00032bd4c, 0xc, 0x0)
        internal/poll/fd_windows.go:896 +0xa9
internal/poll.(*FD).Accept(0xc000173400, 0xc00032bd50, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
        internal/poll/fd_windows.go:930 +0x15f
net.(*netFD).accept(0xc000173400, 0x37e11d600, 0x0, 0x0)
        net/fd_windows.go:193 +0x7b
net.(*TCPListener).accept(0xc000388100, 0xc00032bdf8, 0xc00032be00, 0x18)
        net/tcpsock_posix.go:139 +0x39
net.(*TCPListener).Accept(0xc000388100, 0x121ff48, 0xc0003fcfc0, 0x13a3e60, 0xc0003100a8)
        net/tcpsock.go:261 +0x6b
google.golang.org/grpc.(*Server).Serve(0xc0003fcfc0, 0x1391860, 0xc000388100, 0x0, 0x0)
        google.golang.org/grpc@v1.30.0/server.go:695 +0x217
github.com/dapperlabs/flow-emulator/server.(*GRPCServer).Start(0xc0003e3d60, 0x0, 0x0)
        github.com/dapperlabs/flow-emulator@v0.8.0/server/grpc.go:51 +0x103
github.com/psiemens/graceland.(*Group).Start.func1(0xc000009b80, 0xc0000873f0, 0x1, 0x1384b60, 0xc0003e3d60)
        github.com/psiemens/graceland@v1.0.0/graceland.go:71 +0x3c
created by github.com/psiemens/graceland.(*Group).Start
        github.com/psiemens/graceland@v1.0.0/graceland.go:70 +0x111

goroutine 54 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x28e20fb8, 0x72, 0x137c320)
        runtime/netpoll.go:203 +0x5c
internal/poll.(*pollDesc).wait(0xc000282448, 0x72, 0x1b6a900, 0x0, 0x0)
        internal/poll/fd_poll_runtime.go:87 +0x4c
internal/poll.(*ioSrv).ExecIO(0x1d8a468, 0xc000282298, 0xc0003c4020, 0x1, 0x0, 0x168)
        internal/poll/fd_windows.go:228 +0x121
internal/poll.(*FD).acceptOne(0xc000282280, 0x168, 0xc0006f0000, 0x2, 0x2, 0xc000282298, 0x0, 0x40ac42, 0xc0003c1c00, 0x4144c8)
        internal/poll/fd_windows.go:896 +0xa9
internal/poll.(*FD).Accept(0xc000282280, 0xc0003c1d00, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
        internal/poll/fd_windows.go:930 +0x15f
net.(*netFD).accept(0xc000282280, 0xc0003c1d58, 0x1d90600, 0x180e58)
        net/fd_windows.go:193 +0x7b
net.(*TCPListener).accept(0xc0003c4000, 0xc0003c1d98, 0x40db9f, 0x30)
        net/tcpsock_posix.go:139 +0x39
net.(*TCPListener).Accept(0xc0003c4000, 0x1005c00, 0xc0006ea120, 0xf121a0, 0x1d6e110)
        net/tcpsock.go:261 +0x6b
net/http.(*Server).Serve(0xc00016a7e0, 0x1391860, 0xc0003c4000, 0x0, 0x0)
        net/http/server.go:2930 +0x264
net/http.(*Server).ListenAndServe(0xc00016a7e0, 0x0, 0x0)
        net/http/server.go:2859 +0xbe
github.com/dapperlabs/flow-emulator/server.(*HTTPServer).Start(0xc000554888, 0x0, 0x0)
        github.com/dapperlabs/flow-emulator@v0.8.0/server/http.go:61 +0x39
github.com/psiemens/graceland.(*Group).Start.func1(0xc000009b80, 0xc0000873f0, 0x2, 0x1384ba0, 0xc000554888)
        github.com/psiemens/graceland@v1.0.0/graceland.go:71 +0x3c
created by github.com/psiemens/graceland.(*Group).Start
        github.com/psiemens/graceland@v1.0.0/graceland.go:70 +0x111

goroutine 56 [chan receive, 1 minutes]:
github.com/psiemens/graceland.(*Group).Start.func2(0xc000009b80)
        github.com/psiemens/graceland@v1.0.0/graceland.go:93 +0xd3
created by github.com/psiemens/graceland.(*Group).Start
        github.com/psiemens/graceland@v1.0.0/graceland.go:90 +0x15d

goroutine 57 [syscall, 1 minutes]:
os/signal.signal_recv(0x0)
        runtime/sigqueue.go:147 +0xa3
os/signal.loop()
        os/signal/signal_unix.go:23 +0x29
created by os/signal.Notify.func1
        os/signal/signal.go:127 +0x4b

goroutine 29 [select]:
google.golang.org/grpc/internal/transport.(*controlBuffer).get(0xc00009ce60, 0x1, 0x0, 0x0, 0x0, 0x0)
        google.golang.org/grpc@v1.30.0/internal/transport/controlbuf.go:395 +0x129
google.golang.org/grpc/internal/transport.(*loopyWriter).run(0xc00034e0c0, 0x0, 0x0)
        google.golang.org/grpc@v1.30.0/internal/transport/controlbuf.go:513 +0x1d4
google.golang.org/grpc/internal/transport.newHTTP2Server.func2(0xc000084600)
        google.golang.org/grpc@v1.30.0/internal/transport/http2_server.go:291 +0xd2
created by google.golang.org/grpc/internal/transport.newHTTP2Server
        google.golang.org/grpc@v1.30.0/internal/transport/http2_server.go:288 +0x10c8

goroutine 30 [select, 1 minutes]:
google.golang.org/grpc/internal/transport.(*http2Server).keepalive(0xc000084600)
        google.golang.org/grpc@v1.30.0/internal/transport/http2_server.go:959 +0x28c
created by google.golang.org/grpc/internal/transport.newHTTP2Server
        google.golang.org/grpc@v1.30.0/internal/transport/http2_server.go:297 +0x10ed

goroutine 31 [IO wait]:
internal/poll.runtime_pollWait(0x28e20ed8, 0x72, 0x137c320)
        runtime/netpoll.go:203 +0x5c
internal/poll.(*pollDesc).wait(0xc0002826c8, 0x72, 0x1b6a900, 0x0, 0x0)
        internal/poll/fd_poll_runtime.go:87 +0x4c
internal/poll.(*ioSrv).ExecIO(0x1d8a468, 0xc000282518, 0x12211e0, 0x11, 0x0, 0x0)
        internal/poll/fd_windows.go:228 +0x121
internal/poll.(*FD).Read(0xc000282500, 0xc0006f4000, 0x8000, 0x8000, 0x0, 0x0, 0x0)
        internal/poll/fd_windows.go:527 +0x2fc
net.(*netFD).Read(0xc000282500, 0xc0006f4000, 0x8000, 0x8000, 0x800010601, 0x0, 0x10601004abcb8)
        net/fd_windows.go:152 +0x56
net.(*conn).Read(0xc0003100a8, 0xc0006f4000, 0x8000, 0x8000, 0x0, 0x0, 0x0)
        net/net.go:184 +0x95
bufio.(*Reader).Read(0xc0006f2000, 0xc0006fc038, 0x9, 0x9, 0xc000160000, 0x4595a3, 0x31f37e3bef5cc)
        bufio/bufio.go:226 +0x256
io.ReadAtLeast(0x1377d40, 0xc0006f2000, 0xc0006fc038, 0x9, 0x9, 0x9, 0xbfc96615fa22de74, 0x1162470609, 0x1d8f2a0)
        io/io.go:310 +0x8e
io.ReadFull(...)
        io/io.go:329
golang.org/x/net/http2.readFrameHeader(0xc0006fc038, 0x9, 0x9, 0x1377d40, 0xc0006f2000, 0x0, 0x0, 0xc000038fa0, 0x0)
        golang.org/x/net@v0.0.0-20200301022130-244492dfa37a/http2/frame.go:237 +0x8e
golang.org/x/net/http2.(*Framer).ReadFrame(0xc0006fc000, 0xc000038fa0, 0x1d8f2a0, 0x0, 0x0)
        golang.org/x/net@v0.0.0-20200301022130-244492dfa37a/http2/frame.go:492 +0xa8
google.golang.org/grpc/internal/transport.(*http2Server).HandleStreams(0xc000084600, 0xc0006ea2d0, 0x121ff88)
        google.golang.org/grpc@v1.30.0/internal/transport/http2_server.go:453 +0x9f
google.golang.org/grpc.(*Server).serveStreams(0xc0003fcfc0, 0x13a5a20, 0xc000084600)
        google.golang.org/grpc@v1.30.0/server.go:818 +0x105
google.golang.org/grpc.(*Server).handleRawConn.func1(0xc0003fcfc0, 0x13a5a20, 0xc000084600)
        google.golang.org/grpc@v1.30.0/server.go:777 +0x46
created by google.golang.org/grpc.(*Server).handleRawConn
        google.golang.org/grpc@v1.30.0/server.go:776 +0x504

Thank you for your help !

Have a nice day :slight_smile:

Before the bug :

time="2020-08-25T21:30:37+07:00" level=info msg="βš™οΈ   Using service account 0xf8d6e0586b0a20c7" serviceAddress=f8d6e0586b0a20c7 serviceHashAlgo=SHA3_256 servicePrivKey=bf9db4706c2fdb9011ee7e170ccac492f05427b96ab41d
8bf2d8c58443704b76 servicePubKey=c8e020c9ddd636cdf82084958914610af86099c3e69c58b53994fdfe537673a261c71b2bcabdf2e5ed7d6bb4113dfe9762ce77adc4108e538d8488d1d4c90b1e serviceSigAlgo=ECDSA_P256
time="2020-08-25T21:30:37+07:00" level=info msg="🌱  Starting gRPC server on port 3569" port=3569
time="2020-08-25T21:30:37+07:00" level=info msg="🌱  Starting HTTP server on port 8080" port=8080
time="2020-08-25T21:30:39+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=f8d6e0586b0a20c7
time="2020-08-25T21:30:39+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=f8d6e0586b0a20c7
time="2020-08-25T21:30:40+07:00" level=debug msg="οΈβœ‰οΈ   Transaction submitted" txID=9b89f22210ca5f0864755f7d8d7d9c4be81999531117b79fc0e690bc11ce27a6
time="2020-08-25T21:30:40+07:00" level=info msg="⭐  Transaction executed" txID=9b89f22210ca5f0864755f7d8d7d9c4be81999531117b79fc0e690bc11ce27a6
time="2020-08-25T21:30:40+07:00" level=debug msg="\x1b[1;32mEVT\x1b[0m \x1b[2m[9b89f2]\x1b[0m flow.AccountCreated: 42533318ecc1ade16f380925118aad8b74222c0bfb9dd84d96252794ec369f40"
time="2020-08-25T21:30:40+07:00" level=debug msg="\x1b[1;32mEVT\x1b[0m \x1b[2m[9b89f2]\x1b[0m flow.AccountKeyAdded: 8955ff8f96116d0d96b2835fd6b143be06081be2b3c3e3c363d19d7184b02955"
time="2020-08-25T21:30:40+07:00" level=debug msg="\x1b[1;32mEVT\x1b[0m \x1b[2m[9b89f2]\x1b[0m flow.AccountCodeUpdated: d9117ab4a269176823c97cd807a38ba1ff8027265d3148a4462cac8a3230e9c2"
time="2020-08-25T21:30:40+07:00" level=debug msg="πŸ“¦  Block #1 committed" blockHeight=1 blockID=86eda142df12418b41c95fc83c9a139ccba6292e0a6f528df6ac9f68e18e92f1
time="2020-08-25T21:30:40+07:00" level=debug msg="πŸ“  GetTransactionResult called" txID=9b89f22210ca5f0864755f7d8d7d9c4be81999531117b79fc0e690bc11ce27a6
time="2020-08-25T21:30:40+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=f8d6e0586b0a20c7
time="2020-08-25T21:30:40+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=f8d6e0586b0a20c7
time="2020-08-25T21:30:40+07:00" level=debug msg="οΈβœ‰οΈ   Transaction submitted" txID=98ee09bda17164cd03d74ccfe848627a74e74c77e8a478b38428b578fccb5c96
time="2020-08-25T21:30:41+07:00" level=info msg="⭐  Transaction executed" txID=98ee09bda17164cd03d74ccfe848627a74e74c77e8a478b38428b578fccb5c96
time="2020-08-25T21:30:41+07:00" level=debug msg="\x1b[1;32mEVT\x1b[0m \x1b[2m[98ee09]\x1b[0m flow.AccountCreated: 2c6c44b3440124ff1ab9f94684b72e39423d53ae422b02bffcb6d7b69ab982d2"
time="2020-08-25T21:30:41+07:00" level=debug msg="\x1b[1;32mEVT\x1b[0m \x1b[2m[98ee09]\x1b[0m flow.AccountKeyAdded: f23f29f065a2171b55de6a6fda44ff9fbabc3a43519bf43bbc1fee2b382120ff"
time="2020-08-25T21:30:41+07:00" level=debug msg="\x1b[1;32mEVT\x1b[0m \x1b[2m[98ee09]\x1b[0m flow.AccountCodeUpdated: d61848ca09fbf97bb3b61b58b50b769c19785fea34034f56e414c56d75e7f576"
time="2020-08-25T21:30:41+07:00" level=debug msg="πŸ“¦  Block #2 committed" blockHeight=2 blockID=fd1a5760f19871807ec78455ee678f23d2c892711c7c28386815ace02e0067e3
time="2020-08-25T21:30:41+07:00" level=debug msg="πŸ“  GetTransactionResult called" txID=98ee09bda17164cd03d74ccfe848627a74e74c77e8a478b38428b578fccb5c96
time="2020-08-25T21:30:41+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=f8d6e0586b0a20c7
time="2020-08-25T21:30:41+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=f8d6e0586b0a20c7
time="2020-08-25T21:30:41+07:00" level=debug msg="οΈβœ‰οΈ   Transaction submitted" txID=23e72f5ae6cb82b8e1211dcad5c0c219fb9750b32235db2e0b76e026ce218560
time="2020-08-25T21:30:41+07:00" level=info msg="⭐  Transaction executed" txID=23e72f5ae6cb82b8e1211dcad5c0c219fb9750b32235db2e0b76e026ce218560
time="2020-08-25T21:30:41+07:00" level=debug msg="\x1b[1;32mEVT\x1b[0m \x1b[2m[23e72f]\x1b[0m flow.AccountCreated: 91b78889150a85b188e670d53d541c95ca55f06bc8d876d02fef2e7279bb6f97"
time="2020-08-25T21:30:41+07:00" level=debug msg="\x1b[1;32mEVT\x1b[0m \x1b[2m[23e72f]\x1b[0m flow.AccountKeyAdded: 0afed614c8b0cb6f9bf080e82f587c2519bca5a6770850445d865edc5ec2fe4c"
time="2020-08-25T21:30:41+07:00" level=debug msg="\x1b[1;32mEVT\x1b[0m \x1b[2m[23e72f]\x1b[0m flow.AccountCodeUpdated: 353b3a9a909ba29827123dca1cdd8fca720204a3098c342a2253c6335326e6d1"
time="2020-08-25T21:30:41+07:00" level=debug msg="πŸ“¦  Block #3 committed" blockHeight=3 blockID=5b2150b3f1ee9d762756b9b3406ab47f96783c21508c3424f601e598e987f879
time="2020-08-25T21:30:41+07:00" level=debug msg="πŸ“  GetTransactionResult called" txID=23e72f5ae6cb82b8e1211dcad5c0c219fb9750b32235db2e0b76e026ce218560
time="2020-08-25T21:30:41+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=f8d6e0586b0a20c7
time="2020-08-25T21:30:42+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=f8d6e0586b0a20c7
time="2020-08-25T21:30:42+07:00" level=debug msg="οΈβœ‰οΈ   Transaction submitted" txID=0611d5b428fed49f25af3afa57133022ef84db698f1468933692495f50c90562
time="2020-08-25T21:30:42+07:00" level=info msg="⭐  Transaction executed" txID=0611d5b428fed49f25af3afa57133022ef84db698f1468933692495f50c90562
time="2020-08-25T21:30:42+07:00" level=debug msg="\x1b[1;32mEVT\x1b[0m \x1b[2m[0611d5]\x1b[0m flow.AccountCreated: 0e874c902ebabef7e198d541a25acfae05d783f25ba2344461c57d9ed1760184"
time="2020-08-25T21:30:42+07:00" level=debug msg="\x1b[1;32mEVT\x1b[0m \x1b[2m[0611d5]\x1b[0m flow.AccountKeyAdded: 76aebd6f08590d972fdd2d152dbc19f86fc164477391b7f6608d9426524881fe"
time="2020-08-25T21:30:42+07:00" level=debug msg="\x1b[1;32mEVT\x1b[0m \x1b[2m[0611d5]\x1b[0m flow.AccountCodeUpdated: 78515697b603d44c2c1677482904ffd5906a67a3f3989aca9fe825382f75e511"
time="2020-08-25T21:30:42+07:00" level=debug msg="πŸ“¦  Block #4 committed" blockHeight=4 blockID=62c7977691af2a944c8195c846e92023b333275ff41dc050af3c0368a6bf5072
time="2020-08-25T21:30:42+07:00" level=debug msg="πŸ“  GetTransactionResult called" txID=0611d5b428fed49f25af3afa57133022ef84db698f1468933692495f50c90562
time="2020-08-25T21:30:42+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=f8d6e0586b0a20c7
time="2020-08-25T21:30:42+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=f8d6e0586b0a20c7
time="2020-08-25T21:30:42+07:00" level=debug msg="οΈβœ‰οΈ   Transaction submitted" txID=d4517ad8df287dcd27e47ec60e1b38f6c67c319bbffbb6477a53733e72c7c978
time="2020-08-25T21:30:43+07:00" level=info msg="⭐  Transaction executed" txID=d4517ad8df287dcd27e47ec60e1b38f6c67c319bbffbb6477a53733e72c7c978
time="2020-08-25T21:30:43+07:00" level=debug msg="\x1b[1;32mEVT\x1b[0m \x1b[2m[d4517a]\x1b[0m flow.AccountCreated: f4d267f2a3bec0412feca441a6be80a92731e1739f334f089ef91ac9eafc494f"
time="2020-08-25T21:30:43+07:00" level=debug msg="\x1b[1;32mEVT\x1b[0m \x1b[2m[d4517a]\x1b[0m flow.AccountKeyAdded: c062d3c598486879f2c4643001a5b59072d2d379d32ed83935d16a2d2236a07a"
time="2020-08-25T21:30:43+07:00" level=debug msg="\x1b[1;32mEVT\x1b[0m \x1b[2m[d4517a]\x1b[0m flow.AccountCodeUpdated: 640d0b16664a6f4638f96f56faf80c832f8ab7b7a0906b3619f32a5f7e5530ee"
time="2020-08-25T21:30:43+07:00" level=debug msg="πŸ“¦  Block #5 committed" blockHeight=5 blockID=fa642321ec229d144b05ecea26a772792362e100ea102080d0efc4ab54a2795f
time="2020-08-25T21:30:43+07:00" level=debug msg="πŸ“  GetTransactionResult called" txID=d4517ad8df287dcd27e47ec60e1b38f6c67c319bbffbb6477a53733e72c7c978
time="2020-08-25T21:30:43+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=f8d6e0586b0a20c7
time="2020-08-25T21:30:43+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=f8d6e0586b0a20c7
time="2020-08-25T21:30:43+07:00" level=debug msg="οΈβœ‰οΈ   Transaction submitted" txID=f16f42f9e83888357445d824474fc49c1dfcbff40c9ca70795139dfc33b6a5b2
time="2020-08-25T21:30:43+07:00" level=info msg="⭐  Transaction executed" txID=f16f42f9e83888357445d824474fc49c1dfcbff40c9ca70795139dfc33b6a5b2
time="2020-08-25T21:30:43+07:00" level=debug msg="\x1b[1;32mEVT\x1b[0m \x1b[2m[f16f42]\x1b[0m flow.AccountCreated: ddacb75ce9bcb2d8645c7664cca81fcc22cfbac20d3da43f38bafd221387300d"
time="2020-08-25T21:30:43+07:00" level=debug msg="\x1b[1;32mEVT\x1b[0m \x1b[2m[f16f42]\x1b[0m flow.AccountKeyAdded: c3d0ab24f0ab223a5e5a0752b644f497e8e68adcda7fee78a7b149cc49b95701"
time="2020-08-25T21:30:43+07:00" level=debug msg="\x1b[1;32mEVT\x1b[0m \x1b[2m[f16f42]\x1b[0m flow.AccountCodeUpdated: 769f7328ad414c34853defa5ee32d8d7d9459bd5a396354e6335ce9cb8289308"
time="2020-08-25T21:30:43+07:00" level=debug msg="πŸ“¦  Block #6 committed" blockHeight=6 blockID=c7a7a1d83414ee8c2a836caa5f3d4da517a11227be2011e274c396af3b0aad14
time="2020-08-25T21:30:43+07:00" level=debug msg="πŸ“  GetTransactionResult called" txID=f16f42f9e83888357445d824474fc49c1dfcbff40c9ca70795139dfc33b6a5b2
time="2020-08-25T21:30:44+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=f3fcd2c1a78f5eee
time="2020-08-25T21:30:44+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=f3fcd2c1a78f5eee
time="2020-08-25T21:30:50+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=01cf0e2f2f715450
time="2020-08-25T21:30:50+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=01cf0e2f2f715450
time="2020-08-25T21:30:50+07:00" level=debug msg="οΈβœ‰οΈ   Transaction submitted" txID=c3cfd833d67b298791eaaa493e1d6c095f2b375d49a8e840a92fa15b68a642a4
time="2020-08-25T21:30:50+07:00" level=info msg="⭐  Transaction executed" txID=c3cfd833d67b298791eaaa493e1d6c095f2b375d49a8e840a92fa15b68a642a4
time="2020-08-25T21:30:50+07:00" level=debug msg="\x1b[1;32mEVT\x1b[0m \x1b[2m[c3cfd8]\x1b[0m flow.AccountCodeUpdated: 067c09e719cb97d3c7bb0e8173f3911877e6a6d57cc8ee15ef179938b9349f41"
time="2020-08-25T21:30:50+07:00" level=debug msg="πŸ“¦  Block #7 committed" blockHeight=7 blockID=e659665775c163cda300f2be613f26f85d291bba521ff4ba443f2931539458ca
time="2020-08-25T21:30:56+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=179b6b1cb6755e31
time="2020-08-25T21:30:57+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=179b6b1cb6755e31
time="2020-08-25T21:30:57+07:00" level=debug msg="οΈβœ‰οΈ   Transaction submitted" txID=6996dff6131f030456c0cc4ceb8ca1b40cda4b0f6ce5eac36ceae4ada0ff3b44
time="2020-08-25T21:30:57+07:00" level=info msg="⭐  Transaction executed" txID=6996dff6131f030456c0cc4ceb8ca1b40cda4b0f6ce5eac36ceae4ada0ff3b44
time="2020-08-25T21:30:57+07:00" level=debug msg="\x1b[1;32mEVT\x1b[0m \x1b[2m[6996df]\x1b[0m flow.AccountCodeUpdated: 6b92e25ca23c180f1ed0707807165c4c3286ff5453aac623a9d877d74cd785bd"
time="2020-08-25T21:30:57+07:00" level=debug msg="πŸ“¦  Block #8 committed" blockHeight=8 blockID=ddd083b9699de70da0e725e047559ea3780dfcf30c430c4dd37a47e58f94b2dc
time="2020-08-25T21:30:58+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=179b6b1cb6755e31
time="2020-08-25T21:30:59+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=179b6b1cb6755e31
time="2020-08-25T21:31:01+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=179b6b1cb6755e31
time="2020-08-25T21:31:01+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=179b6b1cb6755e31
time="2020-08-25T21:31:04+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=f3fcd2c1a78f5eee
time="2020-08-25T21:31:04+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=f3fcd2c1a78f5eee
time="2020-08-25T21:31:04+07:00" level=debug msg="οΈβœ‰οΈ   Transaction submitted" txID=621f85a50eb6eb49917d5d4e9b28d64d87aa719db8066422cfb125aae916b32c
time="2020-08-25T21:31:05+07:00" level=info msg="⭐  Transaction executed" txID=621f85a50eb6eb49917d5d4e9b28d64d87aa719db8066422cfb125aae916b32c
time="2020-08-25T21:31:05+07:00" level=debug msg="\x1b[1;32mEVT\x1b[0m \x1b[2m[621f85]\x1b[0m A.f3fcd2c1a78f5eee.Toke.ContractInitialized: c6535c6828ad1b6796caf297194208d16abb29333cd08a6dd5c0e94efc6643b1"
time="2020-08-25T21:31:05+07:00" level=debug msg="\x1b[1;32mEVT\x1b[0m \x1b[2m[621f85]\x1b[0m flow.AccountCodeUpdated: 48d914c9a47357eb4e899c75df7c362cd675ca9f5e760afcf7b6c0dca3036635"
time="2020-08-25T21:31:05+07:00" level=debug msg="πŸ“¦  Block #9 committed" blockHeight=9 blockID=861782ca65d4274dfeec68a1f5a4bb5932c37afc699392050d13fda268fcae8f
time="2020-08-25T21:31:05+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=f3fcd2c1a78f5eee
time="2020-08-25T21:31:06+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=f3fcd2c1a78f5eee
time="2020-08-25T21:31:06+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=179b6b1cb6755e31
time="2020-08-25T21:31:07+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=179b6b1cb6755e31
time="2020-08-25T21:31:09+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=f3fcd2c1a78f5eee
time="2020-08-25T21:31:09+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=f3fcd2c1a78f5eee
time="2020-08-25T21:31:09+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=179b6b1cb6755e31
time="2020-08-25T21:31:09+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=179b6b1cb6755e31
time="2020-08-25T21:31:10+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=e03daebed8ca0615
time="2020-08-25T21:31:10+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=e03daebed8ca0615
time="2020-08-25T21:31:10+07:00" level=debug msg="οΈβœ‰οΈ   Transaction submitted" txID=c0ea422273d3812fe0617e54b9a523d14abd546877def524e91a40e712f9c53a
time="2020-08-25T21:31:11+07:00" level=info msg="⭐  Transaction executed" txID=c0ea422273d3812fe0617e54b9a523d14abd546877def524e91a40e712f9c53a
time="2020-08-25T21:31:11+07:00" level=debug msg="\x1b[1;32mEVT\x1b[0m \x1b[2m[c0ea42]\x1b[0m flow.AccountCodeUpdated: 35357d1f0c435d0e0b12e0e38cb314d899a976188ba0d2f26f069acee6beb7e7"
time="2020-08-25T21:31:11+07:00" level=debug msg="πŸ“¦  Block #10 committed" blockHeight=10 blockID=13ea87e3e3f8b06958c9702997a3f675bf727a334cc484a40bd01dad042a7edf
time="2020-08-25T21:31:12+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=e03daebed8ca0615
time="2020-08-25T21:31:13+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=e03daebed8ca0615
time="2020-08-25T21:31:13+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=f3fcd2c1a78f5eee
time="2020-08-25T21:31:14+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=f3fcd2c1a78f5eee
time="2020-08-25T21:31:14+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=179b6b1cb6755e31
time="2020-08-25T21:31:14+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=179b6b1cb6755e31
time="2020-08-25T21:31:16+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=e03daebed8ca0615
time="2020-08-25T21:31:16+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=e03daebed8ca0615
time="2020-08-25T21:31:16+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=f3fcd2c1a78f5eee
time="2020-08-25T21:31:16+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=f3fcd2c1a78f5eee
time="2020-08-25T21:31:16+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=179b6b1cb6755e31
time="2020-08-25T21:31:16+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=179b6b1cb6755e31
time="2020-08-25T21:31:18+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=045a1763c93006ca
time="2020-08-25T21:31:18+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=045a1763c93006ca
time="2020-08-25T21:31:18+07:00" level=debug msg="οΈβœ‰οΈ   Transaction submitted" txID=672accb68e8a0c59c06d0ea0701301f4834edef5593661338eb138853dbfc366
time="2020-08-25T21:31:18+07:00" level=info msg="⭐  Transaction executed" txID=672accb68e8a0c59c06d0ea0701301f4834edef5593661338eb138853dbfc366
time="2020-08-25T21:31:18+07:00" level=debug msg="\x1b[1;32mEVT\x1b[0m \x1b[2m[672acc]\x1b[0m flow.AccountCodeUpdated: 66b9c7f47fc93e5d7f8f812acbd01446a25a72c0259520e4fa06adb94861c23e"
time="2020-08-25T21:31:18+07:00" level=debug msg="πŸ“¦  Block #11 committed" blockHeight=11 blockID=03226294408841527c65f7d0f37ed1fe685b15f66be9bee6dd0bf77e3301e0f1
time="2020-08-25T21:31:20+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=e03daebed8ca0615
time="2020-08-25T21:31:20+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=e03daebed8ca0615
time="2020-08-25T21:31:20+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=f3fcd2c1a78f5eee
time="2020-08-25T21:31:21+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=f3fcd2c1a78f5eee
time="2020-08-25T21:31:21+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=179b6b1cb6755e31
time="2020-08-25T21:31:21+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=179b6b1cb6755e31
time="2020-08-25T21:31:22+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=e03daebed8ca0615
time="2020-08-25T21:31:23+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=e03daebed8ca0615
time="2020-08-25T21:31:23+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=f3fcd2c1a78f5eee
time="2020-08-25T21:31:23+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=f3fcd2c1a78f5eee
time="2020-08-25T21:31:23+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=179b6b1cb6755e31
time="2020-08-25T21:31:23+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=179b6b1cb6755e31
time="2020-08-25T21:31:24+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=120e725050340cab
time="2020-08-25T21:31:24+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=120e725050340cab
time="2020-08-25T21:31:24+07:00" level=debug msg="οΈβœ‰οΈ   Transaction submitted" txID=ad288820c995877cd60c931fd8bc724ba2e0eaa6e6395074239245518ce8a636
time="2020-08-25T21:31:24+07:00" level=info msg="⭐  Transaction executed" txID=ad288820c995877cd60c931fd8bc724ba2e0eaa6e6395074239245518ce8a636
time="2020-08-25T21:31:24+07:00" level=debug msg="\x1b[1;34mLOG\x1b[0m \x1b[2m[ad2888]\x1b[0m \"Admin account created\""
time="2020-08-25T21:31:24+07:00" level=debug msg="πŸ“¦  Block #12 committed" blockHeight=12 blockID=1ae2be759008c8beff58fef01f0dfaf7bcbe5f452a62708935be068c62369e39
time="2020-08-25T21:31:26+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=f3fcd2c1a78f5eee
time="2020-08-25T21:31:26+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=f3fcd2c1a78f5eee
time="2020-08-25T21:31:26+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=179b6b1cb6755e31
time="2020-08-25T21:31:27+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=179b6b1cb6755e31
time="2020-08-25T21:31:46+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=f3fcd2c1a78f5eee
time="2020-08-25T21:31:46+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=f3fcd2c1a78f5eee
time="2020-08-25T21:31:46+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=179b6b1cb6755e31
time="2020-08-25T21:31:46+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=179b6b1cb6755e31
time="2020-08-25T21:31:51+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=120e725050340cab
time="2020-08-25T21:31:51+07:00" level=debug msg="πŸ‘€  GetAccountAtLatestBlock called" address=120e725050340cab
time="2020-08-25T21:31:51+07:00" level=debug msg="οΈβœ‰οΈ   Transaction submitted" txID=61a05b64eae029ec37775f1981009c6ceaf3722eda929bb1ef8eed34f1334de0
runtime: goroutine stack exceeds 1000000000-byte limit
runtime: sp=0xc0210e3348 stack=[0xc0210e2000, 0xc0410e2000]

From the stack trace it looks like there’s a Cadence value that is converted to a string, but it references itself, so there’s an infinite loop.

I opened a bug report in the Cadence repo to track this.

From what I can see, this is likely caused by these fields storing with reference types (there might be more):

In the latest version of Cadence fields with a reference type are not valid anymore, references cannot be stored, they are short-lived and only exist during the life-time.

Instead of using a reference, consider replacing it with a capability, i.e., instead of using &Admin, use Capability<&Admin>, and where you use the field, borrow the capability to get the reference.

I still need to investigate why executing the transaction results in the string conversion.