Hi, just a heads up. The example given in the documentation doesn’t work.
@seesee Function Reference - Heroic Labs Documentation
local account_updates = {} -- table of account update objects
local storage_writes = {} -- table of storage write objects
local wallet_updates = {} -- table of wallet_update objects
local update_ledger = true
local results = nk.multi_update(account_updates, storage_writes, wallet_updates, update_ledger)
The following seems to be the correct way.
local accountUpdates = {}
local storageWrites = {}
local storageDeletes = {}
local walletUpdates = {}
local storageWriteAcks, walletUpdateAcks, err = nk.multi_update(accountUpdates, storageWrites, storageDeletes, walletUpdates, updateWalletLedger)