Skip to content

Commit

Permalink
Removes unreachable masp check from vp_user
Browse files Browse the repository at this point in the history
  • Loading branch information
grarco committed Nov 10, 2023
1 parent 32984e3 commit 9e5d8b9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wasm/wasm_source/src/vp_user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ fn validate_tx(
ctx.read_post(key)?.unwrap_or_default();
let change = post.change() - pre.change();
// debit has to signed, credit doesn't
let valid =
change.non_negative() || addr == MASP || *valid_sig;
let valid = change.non_negative() || *valid_sig;
debug_log!(
"token key: {}, change: {:?}, valid_sig: {}, valid \
modification: {}",
Expand Down

0 comments on commit 9e5d8b9

Please sign in to comment.