Skip to content

Commit d57a68d

Browse files
committed
burn_icrc2 return type fixed
1 parent 5533bd4 commit d57a68d

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/minter-client/src/lib.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,9 @@ impl<C: CanisterClient> MinterCanisterClient<C> {
8383
.await
8484
}
8585

86-
/// Creates ERC-20 mint order for ICRC-2 tokens burning.
87-
pub async fn burn_icrc2(
88-
&self,
89-
reason: Icrc2Burn,
90-
) -> CanisterClientResult<McResult<SignedMintOrder>> {
86+
/// Creates ERC-20 mint order for ICRC-2 tokens burning and sends it to the BFTBridge.
87+
/// Returns operation id.
88+
pub async fn burn_icrc2(&self, reason: Icrc2Burn) -> CanisterClientResult<McResult<u32>> {
9189
self.client.update("burn_icrc2", (reason,)).await
9290
}
9391

0 commit comments

Comments
 (0)