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

improve logging for ownership acceptance #426

Merged
merged 4 commits into from Nov 11, 2022
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -56,7 +56,7 @@ export const makeAcceptOwnershipCommand = (
logger.info(`Accepting Ownership of contract of type "${contract.type}":
- Contract: ${contract.address} ${contract.description ? '- ' + contract.description : ''}
- Current Owner: ${ownership.owner.toString()}
- Next Owner (Current signer): ${this.wallet.publicKey}`)
- Next Owner (proposed): ${ownership.proposedOwner?.toString()}`)
await prompt('Continue?')
}

Expand Down
Expand Up @@ -26,6 +26,9 @@ export default class AcceptFeedOwnership extends SolanaCommand {
// Need to resolve feed.proposedOwner. This will either match signer
// store with store.owner == signer. If not, the instruction will error
const feedAccount = (await program.account.transmissions.fetch(state)) as any
logger.info(`Ownership details for feed ${address}:
- Current Owner: ${feedAccount.owner.toString()}
- Next Owner (proposed): ${feedAccount.proposedOwner?.toString()}`)

const tx = await program.methods
.acceptFeedOwnership()
Expand Down