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

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

merged 1 commit into from
Sep 1, 2023

Conversation

andreacorbellini
Copy link
Contributor

Summary

When a MintDescription with transferOwnershipTo is seen, the relevant asset on the chain db is updated to reflect the new owner.

Testing Plan

Unit tests. Once the RPC changes are in place, manual testing will be performed as well.

Documentation

No doc change required

Breaking Change

Not a breaking change

@andreacorbellini andreacorbellini requested a review from a team as a code owner August 28, 2023 18:59
@@ -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

@andreacorbellini andreacorbellini deleted the branch iron-fish:staging September 1, 2023 23:29
@andreacorbellini andreacorbellini changed the base branch from asset-security to staging September 1, 2023 23:34
…s seen

When a `MintDescription` with `transferOwnershipTo` is seen, the
relevant asset on the chain db is updated to reflect the new owner.
@andreacorbellini andreacorbellini enabled auto-merge (rebase) September 1, 2023 23:44
@andreacorbellini andreacorbellini merged commit 587ab24 into iron-fish:staging Sep 1, 2023
5 checks passed
@andreacorbellini andreacorbellini deleted the andrea/ifl-1467-update-chain-db-when-a-mint-with-transferownershipto-is branch September 1, 2023 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants