Skip to content

Commit

Permalink
Update the blockchain db whenever a mint with transferOwnershipTo i…
Browse files Browse the repository at this point in the history
…s seen

When a `MintDescription` with `transferOwnershipTo` is seen, the
relevant asset on the chain db is updated to reflect the new owner.
  • Loading branch information
andiflabs authored and andreacorbellini committed Sep 1, 2023
1 parent 18dc25c commit 587ab24
Show file tree
Hide file tree
Showing 5 changed files with 335 additions and 4 deletions.
9 changes: 9 additions & 0 deletions ironfish/src/assert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,13 @@ export class Assert {
throw new Error(`We must have forgotten a falsey value: ${String(x)}`)
}
}

static bufferEquals(x: Buffer, y: Buffer, message?: string): void {
if (!x.equals(y)) {
// Not including the buffer contents in the message because they can
// potentially be huge (also choosing the proper encoding may be a
// problem)
throw new Error(message || 'Expected buffers to have the same contents')
}
}
}
Loading

0 comments on commit 587ab24

Please sign in to comment.