Skip to content

Commit

Permalink
finish factory validator
Browse files Browse the repository at this point in the history
  • Loading branch information
m1n999999 committed Jun 5, 2024
1 parent be4ce29 commit 6682f0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/lb_v2/validation.ak
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,10 @@ pub fn validate_creating_treasury_out(
and {
// treasury datum
base_asset != raise_asset,
base_asset_pid != ada_policy_id,
base_asset_an != ada_asset_name,
and {
base_asset_pid != ada_policy_id,
base_asset_an != ada_asset_name,
},
factory_policy_id == t_factory_policy_id,
manager_hash == t_manager_hash,
seller_hash == t_seller_hash,
Expand Down
1 change: 1 addition & 0 deletions validators/factory.ak
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ fn validate_initialization(
mint_value: Value,
) -> Bool {
// Ensure transaction's outptus contain exactly 1 Factory Output
// check ref script
expect [Output { value: out_value, datum, .. }] =
list.filter(
outputs,
Expand Down

0 comments on commit 6682f0b

Please sign in to comment.