Skip to content

Commit

Permalink
Fix valid_dao_withdraw_transaction panic
Browse files Browse the repository at this point in the history
  • Loading branch information
eval-exec committed Oct 11, 2023
1 parent 385bc89 commit 733e9e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion verification/src/transaction_verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ impl CapacityVerifier {
// withdraw transactions.
// cellbase's outputs are verified by RewardVerifier
// DAO withdraw transaction is verified via the type script of DAO cells
if !(self.resolved_transaction.is_cellbase() || self.valid_dao_withdraw_transaction()) {
if !self.resolved_transaction.is_cellbase() && !self.valid_dao_withdraw_transaction() {
let inputs_sum = self.resolved_transaction.inputs_capacity()?;
let outputs_sum = self.resolved_transaction.outputs_capacity()?;

Expand Down

0 comments on commit 733e9e9

Please sign in to comment.