Skip to content

Commit

Permalink
2 type deser
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetbout committed Jun 25, 2024
1 parent b80c2c2 commit 13962d6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/contracts/claim_account_impl.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ mod ClaimAccountImpl {
let claimData: ClaimData = Serde::deserialize(ref leftovers).unwrap();
self.cancel(claimData);
} else if selector == selector!("get_dust") {
let claimData: ClaimData = Serde::deserialize(ref leftovers).unwrap();
let receiver: ContractAddress = Serde::deserialize(ref leftovers).unwrap();
let (claimData, receiver): (ClaimData, ContractAddress) = Serde::deserialize(ref leftovers).unwrap();
self.get_dust(claimData, receiver);
} else {
panic_with_felt252('gift/invalid-selector');
Expand Down

0 comments on commit 13962d6

Please sign in to comment.