Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the blockchain db whenever a mint with transferOwnershipTo is seen #4253

Merged
merged 1 commit into from
Sep 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked around if a similar function already exists but couldn't find any. I wouldn't be surprised though if there's already something similar

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