Skip to content

Commit

Permalink
Fix stake address generation in seed
Browse files Browse the repository at this point in the history
  • Loading branch information
mesudip committed Nov 25, 2024
1 parent 0c8f343 commit ce216c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prisma/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ const seedDB = async (): Promise<void> => {
}

const toBech32=(hex:string)=>{
return bech32.encode((NETWORK===0?'stake':'stake_test'),Buffer.from((NETWORK===0?'e0':'e1')+hex,'hex'));
return bech32.encode((NETWORK===0?'stake_test': 'stake'),Buffer.from((NETWORK===0?'e0':'e1')+hex,'hex'));
}

// make first 3 wallets for manual testing
const organizerWallet= toBech32('c6924088c74fb299e0204c3e2ff492a65c2a8ade59506dcd589c01e9')
const delegateWAllet=toBech32('44c8b3648fbaf15bd58b249ee4c33327367924b8da8a4f1fee9b69da')
Expand Down

0 comments on commit ce216c8

Please sign in to comment.