Skip to content

Commit

Permalink
Apply formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Picco committed Mar 21, 2024
1 parent 1a7c674 commit b967212
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 3 additions & 4 deletions frontend/claim_sdk/testWallets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,11 +308,10 @@ export class TestAlgorandWallet implements TestWallet {
return new TestAlgorandWallet(keypair)
}


async signMessage(payload: string): Promise<SignedMessage> {
const fullMessage = algorandGetFullMessage(payload);
const messageBytes = Buffer.from(fullMessage, 'utf-8');
const sig = nacl.sign.detached(messageBytes, this.wallet.secretKey);
const fullMessage = algorandGetFullMessage(payload)
const messageBytes = Buffer.from(fullMessage, 'utf-8')
const sig = nacl.sign.detached(messageBytes, this.wallet.secretKey)
return algorandBuildSignedMessage(
this.address(),
Buffer.from(sig).toString('hex'),
Expand Down
4 changes: 3 additions & 1 deletion token-dispenser/programs/token-dispenser/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,9 @@ impl IdentityCertificate {
.get_payload(),
claimant,
)?;
Ok(Identity::Algorand{ pubkey: pubkey.clone() })
Ok(Identity::Algorand {
pubkey: pubkey.clone(),
})
}
IdentityCertificate::Aptos {
pubkey,
Expand Down

0 comments on commit b967212

Please sign in to comment.