Also, is it bad to use a lot of transaction blocks...
# exposed
w
Also, is it bad to use a lot of transaction blocks, or should I use just a single block:
Copy code
override fun getItemsAndCoins(): Pair<Int, Array<ItemStack>> = Pair(
            transaction { coins },
            transaction { items }.map { item ->
                ItemStack(transaction { item.item }, transaction { item.amount })
            }.toTypedArray())
versus
Copy code
override fun getItemsAndCoins(): Pair<Int, Array<ItemStack>> = transaction {
        Pair(
                coins,
                items.map { item ->
                    ItemStack(item.item, item.amount)
                }.toTypedArray())
    }