Skip to content

Commit 62d3727

Browse files
committed
Address bootstrap acceptance review feedback
1 parent 6431aa3 commit 62d3727

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎scripts/ckb_cellscript_acceptance.sh‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1405,6 +1405,7 @@ where
14051405
assert_invariant(initial_mint <= max_supply, "initial exceeds max")
14061406
assert_invariant(pool_seed_amount > 0, "zero pool seed")
14071407
assert_invariant(pool_paired_token.amount > 0, "zero paired seed")
1408+
assert_invariant(symbol != pool_paired_token.symbol, "same token")
14081409
assert_invariant(fee_rate_bps <= 10000, "fee too high")
14091410
assert_invariant(pool_seed_amount <= initial_mint, "pool seed exceeds mint")
14101411
assert_invariant(distribution[1].1 <= U64_MAX - distribution[0].1, "distribution overflow")
@@ -3306,7 +3307,7 @@ def submit_code_cell_deploy_with_fresh_funding(
33063307
}
33073308
except RuntimeError as error:
33083309
last_error = error
3309-
if attempt < max_attempts and is_transient_dead_outpoint_error(error):
3310+
if is_transient_dead_outpoint_error(error):
33103311
continue
33113312
raise
33123313
raise RuntimeError(f"{name} {label_suffix} failed after {max_attempts} attempts: {last_error}")
@@ -3493,7 +3494,7 @@ def create_script_locked_cells(label, cells, cell_deps, max_attempts=4):
34933494
break
34943495
except RuntimeError as error:
34953496
last_error = error
3496-
if attempt < max_attempts and is_transient_dead_outpoint_error(error):
3497+
if is_transient_dead_outpoint_error(error):
34973498
continue
34983499
raise
34993500
else:

0 commit comments

Comments
 (0)