Skip to content

Commit 451c763

Browse files
authored
✨ Return Secp256k1 blob after checking it (#1168)
1 parent 2ec76e2 commit 451c763

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/contract-sdk/src/secp256k1.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ impl<'a> CheckSecp256k1<'a> {
3939
self
4040
}
4141

42-
pub fn expect(self) -> Result<(), &'static str> {
42+
pub fn expect(self) -> Result<Secp256k1Blob, &'static str> {
4343
// Verify Secp256k1Blob
4444
let secp_blob = match self.blob_index {
4545
Some(idx) => {
@@ -78,6 +78,6 @@ impl<'a> CheckSecp256k1<'a> {
7878
return Err("Secp256k1Blob data does not match");
7979
}
8080

81-
Ok(())
81+
Ok(secp_data)
8282
}
8383
}

0 commit comments

Comments
 (0)