chore: run fmt on mint
This commit is contained in:
parent
3fac7002d4
commit
3aa9e0c4b7
|
@ -3,8 +3,8 @@ use aiken/collection/list
|
||||||
use cardano/assets.{PolicyId, Value}
|
use cardano/assets.{PolicyId, Value}
|
||||||
use cardano/credential
|
use cardano/credential
|
||||||
use cardano/transaction.{
|
use cardano/transaction.{
|
||||||
DatumHash, Input, Mint, Minting, NoDatum, Output, OutputReference,
|
DatumHash, Input, Mint, NoDatum, Output, OutputReference, ScriptPurpose,
|
||||||
ScriptContext, ScriptInfo, ScriptPurpose, Transaction
|
Transaction,
|
||||||
}
|
}
|
||||||
|
|
||||||
const null28 = #"00000000000000000000000000000000000000000000000000000000"
|
const null28 = #"00000000000000000000000000000000000000000000000000000000"
|
||||||
|
@ -54,7 +54,6 @@ fn assert_reference_inputs(inputs: List<Input>) -> Void {
|
||||||
Void
|
Void
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
fn assert_redeemers(redeemers: Pairs<ScriptPurpose, Data>) -> PolicyId {
|
fn assert_redeemers(redeemers: Pairs<ScriptPurpose, Data>) -> PolicyId {
|
||||||
expect [Pair(Mint(other_policy_id), data), _] = redeemers
|
expect [Pair(Mint(other_policy_id), data), _] = redeemers
|
||||||
expect Void = data
|
expect Void = data
|
||||||
|
@ -125,8 +124,12 @@ fn assert_mint(mint: Value, our_policy_id: PolicyId, other_policy_id: PolicyId)
|
||||||
}
|
}
|
||||||
|
|
||||||
validator test_2 {
|
validator test_2 {
|
||||||
mint(_tmp2: Void, _policy_id: PolicyId, _ctx: ScriptContext) {
|
mint(_tmp2: Void, _policy_id: PolicyId, _transaction: Transaction) {
|
||||||
trace @"_____mint_2_____"
|
trace @"_____mint_2_____"
|
||||||
True
|
True
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else(_ctx) {
|
||||||
|
fail
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue