From f2ee6adc18c0396651515d99915efcda013bc4bc Mon Sep 17 00:00:00 2001 From: card Date: Fri, 1 Mar 2024 03:34:30 -0500 Subject: [PATCH] test that we cannot attach spam inline datum to metadata output --- validators/tests/pool.ak | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/validators/tests/pool.ak b/validators/tests/pool.ak index 5024066..d621f50 100644 --- a/validators/tests/pool.ak +++ b/validators/tests/pool.ak @@ -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 +} \ No newline at end of file