Skip to content

Commit 04f3c60

Browse files
committed
chore: added comment for core method to prevent dust attack.
1 parent a5feaa4 commit 04f3c60

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cardano/onchain/validators/spending_transfer_module.ak

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ validator spend_transfer_module(
9696
}
9797
}
9898

99+
// Verifies the expected amount is added/subtracted from the input,
100+
// preventing dust attack from happening
99101
fn validate_output_amount(
100102
locked_input: Input,
101103
output: Output,

0 commit comments

Comments
 (0)