-
Notifications
You must be signed in to change notification settings - Fork 4
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
add create indempotent when an account is not initialized #136
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewing this ASAP, needs a bit of work but will have it revised and submitted.
@@ -276,10 +277,12 @@ export class FutarchyRPCProposalsClient implements FutarchyProposalsClient { | |||
proposal: Proposal, | |||
underlyingToken: "base" | "quote" | |||
) { | |||
const user = new PublicKey("DygGNcj9iGYrWX7UX1wvoAQcvkaJDKhguvb5NS3wjV9f") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't keep this in here.
const passVaultInfo = await this.rpcProvider.connection.getAccountInfo(accounts.userConditionalOnFinalizeTokenAccount); | ||
const failVaultInfo = await this.rpcProvider.connection.getAccountInfo(accounts.userConditionalOnRevertTokenAccount); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't we just assume that the vaults exist? RPC calls are expensive
* add create indempotent when an account is not initialized * feat: adds instruction regardless, update package * fix: rename function to relay details --------- Co-authored-by: Kollan House <[email protected]>
No description provided.