Remove single-argument function call special-case in formatter

Not sure what this special case was trying to achieve, but it's not right. There's no need to handle function call with a single argument differently than the others.
This commit is contained in:
KtorZ
2023-02-15 17:20:58 +01:00
parent 47e77aa819
commit 7251b2d01e
7 changed files with 91 additions and 66 deletions

View File

@@ -20,10 +20,10 @@ for convenience.
## Test Coverage
- [ ] Purpose
- [x] Spend
- [x] Mint
- [x] Withdraw
- [ ] Publish
- [x] spend
- [x] mint
- [x] withdraw
- [ ] publish
- [ ] Transaction
- [ ] inputs
@@ -35,15 +35,15 @@ for convenience.
- [ ] pointer
- [x] value
- [x] datum
- [x] None
- [x] Hash
- [x] Inline
- [x] none
- [x] hash
- [x] inline
- [x] script
- [x] None
- [x] Reference
- [x] none
- [x] reference
- [x] values
- [x] Pure Ada
- [x] Native assets
- [x] pure ada
- [x] native assets
- [x] fee
- [x] mint
- [ ] certificates

View File

@@ -57,12 +57,12 @@ fn assert_first_output(output) {
fn assert_second_output(output) {
[
output.address.stake_credential == Some(
Inline(
VerificationKeyCredential(
#"66666666666666666666666666666666666666666666666666666666",
))
)
,
Inline(
VerificationKeyCredential(
#"66666666666666666666666666666666666666666666666666666666",
),
),
),
when output.datum is {
InlineDatum(_) -> True
_ -> error("expected inline datum")

View File

@@ -8,17 +8,17 @@ use aiken/transaction/credential.{
fn spend(_datum: Void, _redeemer: Void, ctx: ScriptContext) {
let alice =
Inline(
VerificationKeyCredential(
#"22222222222222222222222222222222222222222222222222222222",
))
VerificationKeyCredential(
#"22222222222222222222222222222222222222222222222222222222",
),
)
let bob =
Inline(
ScriptCredential(
#"afddc16c18e7d8de379fb9aad39b3d1b5afd27603e5ebac818432a72",
))
ScriptCredential(
#"afddc16c18e7d8de379fb9aad39b3d1b5afd27603e5ebac818432a72",
),
)
[
when dict.get(ctx.transaction.withdrawals, alice) is {