Skip to content

Commit

Permalink
Add ForceTransferSupport
Browse files Browse the repository at this point in the history
  • Loading branch information
jeradhoy committed Dec 18, 2024
1 parent df4df2d commit c48c830
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/contract/src/core/collateral.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ pub enum MarkerAccess {
Delete,
Mint,
Transfer,
ForceTransfer,
Unspecified,
Withdraw,
}
Expand All @@ -44,6 +45,7 @@ impl From<MarkerAccess> for Access {
MarkerAccess::Delete => Access::Delete,
MarkerAccess::Mint => Access::Mint,
MarkerAccess::Transfer => Access::Transfer,
MarkerAccess::ForceTransfer => Access::ForceTransfer,
MarkerAccess::Withdraw => Access::Withdraw,
}
}
Expand All @@ -60,7 +62,7 @@ impl From<Access> for MarkerAccess {
Access::Mint => MarkerAccess::Mint,
Access::Transfer => MarkerAccess::Transfer,
Access::Withdraw => MarkerAccess::Withdraw,
Access::ForceTransfer => panic!("ForceTransfer is not supported"),
Access::ForceTransfer => MarkerAccess::ForceTransfer
}
}
}
Expand Down

0 comments on commit c48c830

Please sign in to comment.