Skip to content

Commit

Permalink
Disallow creation of CoinStore<NOT_COIN_TYPE> and also migration of it (
Browse files Browse the repository at this point in the history
#13228)

* [migration] nits

* [coin] disallow creation of CoinStore<NOT_A_COIN_TYPE>
  • Loading branch information
lightmark authored May 15, 2024
1 parent 173010a commit d671bb8
Show file tree
Hide file tree
Showing 14 changed files with 177 additions and 139 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
"state_change_hash": "",
"event_root_hash": "",
"state_checkpoint_hash": null,
"gas_used": "5",
"gas_used": "6",
"success": true,
"vm_status": "Executed successfully",
"accumulator_root_hash": "",
Expand Down Expand Up @@ -338,10 +338,10 @@
"type": "0x1::transaction_fee::FeeStatement",
"data": {
"execution_gas_units": "4",
"io_gas_units": "2",
"io_gas_units": "3",
"storage_fee_octas": "0",
"storage_fee_refund_octas": "0",
"total_charge_gas_units": "5"
"total_charge_gas_units": "6"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
"state_change_hash": "",
"event_root_hash": "",
"state_checkpoint_hash": null,
"gas_used": "5",
"gas_used": "6",
"success": true,
"vm_status": "Executed successfully",
"accumulator_root_hash": "",
Expand Down Expand Up @@ -343,10 +343,10 @@
"type": "0x1::transaction_fee::FeeStatement",
"data": {
"execution_gas_units": "4",
"io_gas_units": "2",
"io_gas_units": "3",
"storage_fee_octas": "0",
"storage_fee_refund_octas": "0",
"total_charge_gas_units": "5"
"total_charge_gas_units": "6"
}
}
],
Expand Down Expand Up @@ -534,7 +534,7 @@
"state_change_hash": "",
"event_root_hash": "",
"state_checkpoint_hash": null,
"gas_used": "5",
"gas_used": "6",
"success": true,
"vm_status": "Executed successfully",
"accumulator_root_hash": "",
Expand Down Expand Up @@ -697,10 +697,10 @@
"type": "0x1::transaction_fee::FeeStatement",
"data": {
"execution_gas_units": "4",
"io_gas_units": "2",
"io_gas_units": "3",
"storage_fee_octas": "0",
"storage_fee_refund_octas": "0",
"total_charge_gas_units": "5"
"total_charge_gas_units": "6"
}
}
],
Expand Down Expand Up @@ -888,7 +888,7 @@
"state_change_hash": "",
"event_root_hash": "",
"state_checkpoint_hash": null,
"gas_used": "5",
"gas_used": "6",
"success": true,
"vm_status": "Executed successfully",
"accumulator_root_hash": "",
Expand Down Expand Up @@ -1051,10 +1051,10 @@
"type": "0x1::transaction_fee::FeeStatement",
"data": {
"execution_gas_units": "4",
"io_gas_units": "2",
"io_gas_units": "3",
"storage_fee_octas": "0",
"storage_fee_refund_octas": "0",
"total_charge_gas_units": "5"
"total_charge_gas_units": "6"
}
}
],
Expand Down Expand Up @@ -1242,7 +1242,7 @@
"state_change_hash": "",
"event_root_hash": "",
"state_checkpoint_hash": null,
"gas_used": "5",
"gas_used": "6",
"success": true,
"vm_status": "Executed successfully",
"accumulator_root_hash": "",
Expand Down Expand Up @@ -1405,10 +1405,10 @@
"type": "0x1::transaction_fee::FeeStatement",
"data": {
"execution_gas_units": "4",
"io_gas_units": "2",
"io_gas_units": "3",
"storage_fee_octas": "0",
"storage_fee_refund_octas": "0",
"total_charge_gas_units": "5"
"total_charge_gas_units": "6"
}
}
],
Expand Down Expand Up @@ -1596,7 +1596,7 @@
"state_change_hash": "",
"event_root_hash": "",
"state_checkpoint_hash": null,
"gas_used": "5",
"gas_used": "6",
"success": true,
"vm_status": "Executed successfully",
"accumulator_root_hash": "",
Expand Down Expand Up @@ -1759,10 +1759,10 @@
"type": "0x1::transaction_fee::FeeStatement",
"data": {
"execution_gas_units": "4",
"io_gas_units": "2",
"io_gas_units": "3",
"storage_fee_octas": "0",
"storage_fee_refund_octas": "0",
"total_charge_gas_units": "5"
"total_charge_gas_units": "6"
}
}
],
Expand Down Expand Up @@ -1950,7 +1950,7 @@
"state_change_hash": "",
"event_root_hash": "",
"state_checkpoint_hash": null,
"gas_used": "5",
"gas_used": "6",
"success": true,
"vm_status": "Executed successfully",
"accumulator_root_hash": "",
Expand Down Expand Up @@ -2113,10 +2113,10 @@
"type": "0x1::transaction_fee::FeeStatement",
"data": {
"execution_gas_units": "4",
"io_gas_units": "2",
"io_gas_units": "3",
"storage_fee_octas": "0",
"storage_fee_refund_octas": "0",
"total_charge_gas_units": "5"
"total_charge_gas_units": "6"
}
}
],
Expand Down Expand Up @@ -2304,7 +2304,7 @@
"state_change_hash": "",
"event_root_hash": "",
"state_checkpoint_hash": null,
"gas_used": "5",
"gas_used": "6",
"success": true,
"vm_status": "Executed successfully",
"accumulator_root_hash": "",
Expand Down Expand Up @@ -2467,10 +2467,10 @@
"type": "0x1::transaction_fee::FeeStatement",
"data": {
"execution_gas_units": "4",
"io_gas_units": "2",
"io_gas_units": "3",
"storage_fee_octas": "0",
"storage_fee_refund_octas": "0",
"total_charge_gas_units": "5"
"total_charge_gas_units": "6"
}
}
],
Expand Down Expand Up @@ -2658,7 +2658,7 @@
"state_change_hash": "",
"event_root_hash": "",
"state_checkpoint_hash": null,
"gas_used": "5",
"gas_used": "6",
"success": true,
"vm_status": "Executed successfully",
"accumulator_root_hash": "",
Expand Down Expand Up @@ -2821,10 +2821,10 @@
"type": "0x1::transaction_fee::FeeStatement",
"data": {
"execution_gas_units": "4",
"io_gas_units": "2",
"io_gas_units": "3",
"storage_fee_octas": "0",
"storage_fee_refund_octas": "0",
"total_charge_gas_units": "5"
"total_charge_gas_units": "6"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ Ok(
),
events: [
ContractEvent { key: EventKey { creation_number: 0, account_address: f5b9d6f01a99e74c790e2f330c092fa05455a8193f1dfc1b113ecc54d067afe1 }, index: 0, type: Struct(StructTag { address: 0000000000000000000000000000000000000000000000000000000000000001, module: Identifier("account"), name: Identifier("CoinRegisterEvent"), type_params: [] }), event_data: "00000000000000000000000000000000000000000000000000000000000000010a6170746f735f636f696e094170746f73436f696e" },
ModuleEvent { type: Struct(StructTag { address: 0000000000000000000000000000000000000000000000000000000000000001, module: Identifier("transaction_fee"), name: Identifier("FeeStatement"), type_params: [] }), event_data: "05000000000000000400000000000000020000000000000000000000000000000000000000000000" },
ModuleEvent { type: Struct(StructTag { address: 0000000000000000000000000000000000000000000000000000000000000001, module: Identifier("transaction_fee"), name: Identifier("FeeStatement"), type_params: [] }), event_data: "06000000000000000400000000000000030000000000000000000000000000000000000000000000" },
],
gas_used: 5,
gas_used: 6,
status: Keep(
Success,
),
Expand Down
Loading

0 comments on commit d671bb8

Please sign in to comment.