Skip to content

Commit

Permalink
test that we cannot attach spam inline datum to metadata output
Browse files Browse the repository at this point in the history
  • Loading branch information
cardenaso11 committed Mar 1, 2024
1 parent 95c5d4d commit f2ee6ad
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions validators/tests/pool.ak
Original file line number Diff line number Diff line change
Expand Up @@ -678,3 +678,19 @@ test mint_test_wrong_address () fail {
)
minted
}

// make sure we can't include any spam on the datum
test mint_test_nonvoid_datum() fail {
let minted = mint_test_modify(
identity,
identity,
fn (ref_metadata_output) {
Output {
..ref_metadata_output,
datum: InlineDatum("Evil data")
}
},
identity
)
minted
}

0 comments on commit f2ee6ad

Please sign in to comment.