MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / CreateLedger

Method CreateLedger

ledger.go:60–67  ·  view source on GitHub ↗

CreateLedger creates a new ledger. It calls postLedgerActions after a successful creation. Parameters: - ledger: A Ledger model representing the ledger to be created. Returns: - model.Ledger: The created Ledger model. - error: An error if the ledger could not be created.

(ledger model.Ledger)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

TestCreateLedgerFunction · 0.95

Calls 2

postLedgerActionsMethod · 0.95
CreateLedgerMethod · 0.65

Tested by 1

TestCreateLedgerFunction · 0.76