Skip to content
This repository was archived by the owner on Jul 28, 2023. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Move.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ PontemFramework = "0x1"
Root = "0xA550C18"

[dependencies]
MoveStdlib = { git = "https://github.com/pontem-network/move-stdlib.git", rev = "release-v1.0.0"}
MoveStdlib = { git = "https://github.com/pontem-network/move-stdlib.git", rev = "new-reflect-module"}
4 changes: 3 additions & 1 deletion sources/ChainId.move
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ module PontemFramework::ChainId {
pragma opaque;
let root_addr = Signer::address_of(root_account);
modifies global<ChainId>(root_addr);

include PontTimestamp::AbortsIfNotGenesis;
include CoreAddresses::AbortsIfNotRoot{ account: root_account };

aborts_if exists<ChainId>(root_addr) with Errors::ALREADY_PUBLISHED;
ensures exists<ChainId>(root_addr);
}
Expand All @@ -48,7 +50,7 @@ module PontemFramework::ChainId {
/// # Initialization

spec module {
/// When Diem is operating, the chain id is always available.
/// When Pontem is operating, the chain id is always available.
invariant [suspendable] PontTimestamp::is_operating() ==> exists<ChainId>(@Root);

// Could also specify that ChainId is not stored on any other address, but it doesn't matter.
Expand Down
Loading