Skip to content

Conversation

@guibescos
Copy link
Contributor

@guibescos guibescos commented Sep 27, 2024

Some stake accounts are not created through the createStakeAccount function.
Therefore they need to call joinDaoLlc when delegating/staking.

@vercel
Copy link

vercel bot commented Sep 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api-reference ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 27, 2024 1:52pm
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 27, 2024 1:52pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
proposals ⬜️ Ignored (Inspect) Visit Preview Sep 27, 2024 1:52pm

isWritable: false,
isSigner: false,
},
]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

my formatter decided to do some stuff

Copy link
Contributor

Choose a reason for hiding this comment

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

Does pnpm fix allow this?

.instruction();
}

public async getJoinDaoLlcInstructionIfNeeded(
Copy link
Contributor

Choose a reason for hiding this comment

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

I would make these separated functions.

hadJoinedDaoLlc and getJoinDaoLlcInstruction

Then you dont have to check if this the result of this function is undefined

Copy link
Contributor Author

Choose a reason for hiding this comment

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

cool

@guibescos guibescos merged commit 275248e into main Sep 27, 2024
6 checks passed
@guibescos guibescos deleted the fix/join-llc branch September 27, 2024 13:58
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.

2 participants