Skip to content

Commit

Permalink
feat: add setDefaultHandler to ledger factory
Browse files Browse the repository at this point in the history
  • Loading branch information
SamMousa committed Dec 8, 2021
1 parent 67f6f67 commit f9899ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/LedgerFactory.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ LedgerFactory.createLedger = function(table, send, registerReceiveHandler, autho
registerMutator = function(metatable, mutatorFunc)
stateManager:registerHandler(metatable, mutatorFunc)
end,
setDefaultHandler = function(handler)
stateManager:setDefaultHandler(handler)
end,
submitEntry = function(entry)
-- not applying timetravel before auth, because from an addon perspective it is the current time.
-- check authorization
Expand Down

0 comments on commit f9899ad

Please sign in to comment.