|
| 1 | +--- |
| 2 | +source: external-crates/move/crates/move-transactional-test-runner/src/framework.rs |
| 3 | +--- |
| 4 | +processed 14 tasks |
| 5 | + |
| 6 | +init: |
| 7 | +A: object(0,0), B: object(0,1) |
| 8 | + |
| 9 | +task 1, lines 11-35: |
| 10 | +//# publish --sender A |
| 11 | +created: object(1,0) |
| 12 | +mutated: object(0,0) |
| 13 | +gas summary: computation_cost: 1000000, storage_cost: 7311200, storage_rebate: 0, non_refundable_storage_fee: 0 |
| 14 | + |
| 15 | +task 2, lines 36-41: |
| 16 | +//# programmable --sender A --inputs @A |
| 17 | +//> 0: test::large_balance::create_holder(); |
| 18 | +//> 1: test::large_balance::create_holder(); |
| 19 | +//> TransferObjects([Result(0), Result(1)], Input(0)) |
| 20 | +// Send two large transfers in a single PTB - should cause Move abort due to overflow |
| 21 | +created: object(2,0), object(2,1) |
| 22 | +mutated: object(0,0) |
| 23 | +gas summary: computation_cost: 1000000, storage_cost: 3876000, storage_rebate: 978120, non_refundable_storage_fee: 9880 |
| 24 | + |
| 25 | +task 3, lines 42-44: |
| 26 | +//# programmable --sender A --inputs object(2,0) object(2,1) @A 18446744073709551614 |
| 27 | +//> 0: test::large_balance::send_large_balance(Input(0), Input(2), Input(3)); |
| 28 | +//> 1: test::large_balance::send_large_balance(Input(1), Input(2), Input(3)); |
| 29 | +Error: Transaction Effects Status: Move Primitive Runtime Error. Location: sui::funds_accumulator::add_to_accumulator_address (function index 8) at offset 0. Arithmetic error, stack overflow, max value depth, etc. |
| 30 | +Execution Error: ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: MovePrimitiveRuntimeError(MoveLocationOpt(Some(MoveLocation { module: ModuleId { address: sui, name: Identifier("funds_accumulator") }, function: 8, instruction: 0, function_name: Some("add_to_accumulator_address") }))), source: Some(VMError { major_status: ARITHMETIC_ERROR, sub_status: None, message: Some("accumulator merge overflow: total merges 36893488147419103228 exceed u64::MAX"), exec_state: None, location: Module(ModuleId { address: sui, name: Identifier("funds_accumulator") }), indices: [], offsets: [(FunctionDefinitionIndex(8), 0)] }), command: Some(1) } } |
| 31 | + |
| 32 | +task 4, lines 46-48: |
| 33 | +//# create-checkpoint |
| 34 | +Checkpoint created: 1 |
| 35 | + |
| 36 | +task 5, line 49: |
| 37 | +//# run test::large_balance::send_large_balance --args object(2,0) @A 18446744073709551614 --sender A |
| 38 | +mutated: object(0,0), object(2,0) |
| 39 | +unchanged_shared: 0x0000000000000000000000000000000000000000000000000000000000000403 |
| 40 | +accumulators_written: (object(5,0), A, sui::balance::Balance<test::large_balance::MARKER>, Merge) |
| 41 | +gas summary: computation_cost: 1000000, storage_cost: 2432000, storage_rebate: 2407680, non_refundable_storage_fee: 24320 |
| 42 | + |
| 43 | +task 6, lines 51-53: |
| 44 | +//# create-checkpoint |
| 45 | +Checkpoint created: 2 |
| 46 | + |
| 47 | +task 7, line 54: |
| 48 | +//# run test::large_balance::send_large_balance --args object(2,1) @A 18446744073709551614 --sender A |
| 49 | +mutated: object(0,0), object(2,1) |
| 50 | +unchanged_shared: 0x0000000000000000000000000000000000000000000000000000000000000403 |
| 51 | +accumulators_written: (object(5,0), A, sui::balance::Balance<test::large_balance::MARKER>, Merge) |
| 52 | +gas summary: computation_cost: 1000000, storage_cost: 2432000, storage_rebate: 2407680, non_refundable_storage_fee: 24320 |
| 53 | + |
| 54 | +task 8, lines 56-58: |
| 55 | +//# create-checkpoint |
| 56 | +Checkpoint created: 3 |
| 57 | + |
| 58 | +task 9, lines 59-61: |
| 59 | +//# programmable --sender A --inputs withdraw<sui::balance::Balance<test::large_balance::MARKER>>(18446744073709551614) @B |
| 60 | +//> 0: sui::balance::redeem_funds<test::large_balance::MARKER>(Input(0)); |
| 61 | +//> 1: sui::balance::send_funds<test::large_balance::MARKER>(Result(0), Input(1)); |
| 62 | +mutated: object(0,0) |
| 63 | +unchanged_shared: 0x0000000000000000000000000000000000000000000000000000000000000403 |
| 64 | +accumulators_written: (object(5,0), A, sui::balance::Balance<test::large_balance::MARKER>, Split), (object(9,0), B, sui::balance::Balance<test::large_balance::MARKER>, Merge) |
| 65 | +gas summary: computation_cost: 1000000, storage_cost: 988000, storage_rebate: 978120, non_refundable_storage_fee: 9880 |
| 66 | + |
| 67 | +task 10, lines 63-65: |
| 68 | +//# create-checkpoint |
| 69 | +Checkpoint created: 4 |
| 70 | + |
| 71 | +task 11, lines 66-68: |
| 72 | +//# programmable --sender A --inputs withdraw<sui::balance::Balance<test::large_balance::MARKER>>(18446744073709551614) @B |
| 73 | +//> 0: sui::balance::redeem_funds<test::large_balance::MARKER>(Input(0)); |
| 74 | +//> 1: sui::balance::send_funds<test::large_balance::MARKER>(Result(0), Input(1)); |
| 75 | +mutated: object(0,0) |
| 76 | +unchanged_shared: 0x0000000000000000000000000000000000000000000000000000000000000403 |
| 77 | +accumulators_written: (object(5,0), A, sui::balance::Balance<test::large_balance::MARKER>, Split), (object(9,0), B, sui::balance::Balance<test::large_balance::MARKER>, Merge) |
| 78 | +gas summary: computation_cost: 1000000, storage_cost: 988000, storage_rebate: 978120, non_refundable_storage_fee: 9880 |
| 79 | + |
| 80 | +task 12, lines 70-72: |
| 81 | +//# create-checkpoint |
| 82 | +Checkpoint created: 5 |
| 83 | + |
| 84 | +task 13, lines 73-77: |
| 85 | +//# programmable --sender A --inputs withdraw<sui::balance::Balance<test::large_balance::MARKER>>(18446744073709551614) withdraw<sui::balance::Balance<test::large_balance::MARKER>>(18446744073709551614) @B |
| 86 | +//> 0: sui::balance::redeem_funds<test::large_balance::MARKER>(Input(0)); |
| 87 | +//> 1: sui::balance::redeem_funds<test::large_balance::MARKER>(Input(1)); |
| 88 | +//> 2: sui::balance::join<test::large_balance::MARKER>(Result(0), Result(1)); |
| 89 | +//> 3: sui::balance::send_funds<test::large_balance::MARKER>(Result(0), Input(2)); |
| 90 | +Error: Transaction Effects Status: Move Primitive Runtime Error. Location: sui::funds_accumulator::withdraw_from_accumulator_address (function index 9) at offset 0. Arithmetic error, stack overflow, max value depth, etc. |
| 91 | +Debug of error: MovePrimitiveRuntimeError(MoveLocationOpt(Some(MoveLocation { module: ModuleId { address: sui, name: Identifier("funds_accumulator") }, function: 9, instruction: 0, function_name: Some("withdraw_from_accumulator_address") }))) at command Some(1) |
0 commit comments