Append and snapshot a ledger on mesh-sdk's ledger subjects, the ones its account is granted, refusing a binding naming others (issue 1966 T6)
This commit is contained in:
@@ -98,7 +98,10 @@ func (c *consumers) ledger(module, local string) (*ledger.Ledger, error) {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
history, state, snapshots := c.conn.LedgerStores(b, writer)
|
||||
history, state, snapshots, err := c.conn.LedgerStores(module, b, writer)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
// The owning module's authenticated account: the user of the connection its history is published on.
|
||||
account := module
|
||||
if writer != nil && writer.Credential().User != "" {
|
||||
|
||||
Reference in New Issue
Block a user