Skip to content

Commit

Permalink
fix verify_signature
Browse files Browse the repository at this point in the history
  • Loading branch information
dragos-rebegea committed Oct 18, 2024
1 parent 4582dbb commit 3f641ee
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions contracts/faucet/src/faucet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,10 @@ pub trait Faucet {
caller: &ManagedAddress<Self::Api>,
signature: &Signature<Self::Api>,
) {
let mut data = ManagedBuffer::new();
let _ = caller.dep_encode(&mut data);

let signer = self.signer().get();
self.crypto().verify_ed25519(
signer.as_managed_buffer(),
&data,
caller.as_managed_buffer(),
signature.as_managed_buffer(),
);
}
Expand Down

0 comments on commit 3f641ee

Please sign in to comment.