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

Ownership commands for every program #106

Merged
merged 1 commit into from
Jan 19, 2022

Conversation

RodrigoAD
Copy link
Member

No description provided.

const tx = await program.rpc.acceptOwnership({
accounts: {
// Store contract expects an store account instead of a state acc
...(contractId === CONTRACT_LIST.STORE && { store: state }),
Copy link
Member Author

Choose a reason for hiding this comment

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

@archseer Seems like the store contract expects a different account name than the rest. Should we have same interface on every program?
(https://github.com/smartcontractkit/chainlink-solana/blob/develop/contracts/programs/store/src/lib.rs#L133)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah we could do that, I kept the name different initially since there were some calls where both store and ocr2 state had to be passed but in that case it's probably better to use store_state/ocr2_state.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@RodrigoAD RodrigoAD force-pushed the gauntlet-general-transfer-ownership branch from 74dd5b2 to c403fa0 Compare January 19, 2022 11:44
@RodrigoAD RodrigoAD merged commit e7fc4c1 into develop Jan 19, 2022
@RodrigoAD RodrigoAD deleted the gauntlet-general-transfer-ownership branch January 19, 2022 11:48
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.

None yet

2 participants