[tests] Cannot return collection-typed values from scripts
Closed this issue · 0 comments
SupunS commented
Crashes when trying to return an array/dictionary/composite typed value from a script.
import Test
pub fun test() {
var blockchain = Test.newEmulatorBlockchain()
var result = blockchain.executeScript("pub fun main(): [UInt64] { return [1, 2, 3]}", [])
Root cause: Storage is not properly initialized