Skip to content

Commit

Permalink
feat: randomize proposal type selection in createProposal method
Browse files Browse the repository at this point in the history
  • Loading branch information
kneerose committed Feb 13, 2025
1 parent d519c20 commit 96fcaf8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,9 @@ export default class ProposalSubmissionPage {

async createProposal(
wallet: StaticWallet,
proposalType: ProposalType = ProposalType.treasury
proposalType: ProposalType = Object.values(ProposalType)[
Math.floor(Math.random() * Object.values(ProposalType).length)
]
): Promise<number> {
await this.addLinkBtn.click();
const receivingAddr = ShelleyWallet.fromJson(wallet).rewardAddressBech32(
Expand Down

0 comments on commit 96fcaf8

Please sign in to comment.