Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

IPC-304: add permissioned flag for new contract version #412

Merged
merged 2 commits into from
Dec 5, 2023

Conversation

adlrocha
Copy link
Contributor

@adlrocha adlrocha commented Dec 5, 2023

Depends on: consensus-shipyard/ipc-solidity-actors#305
Upgrades contract version and introduces a permissioned flag to address https://github.com/consensus-shipyard/ipc-solidity-actors/issue/304

Copy link
Contributor

@maciejwitowski maciejwitowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, with comments.

@@ -96,4 +97,9 @@ pub struct CreateSubnetArgs {
help = "Minimum fee for cross-net messages in subnet (in whole FIL)"
)]
pub min_cross_msg_fee: f64,
#[arg(
long,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the conversion to long will be done automatically by the CLI library we use, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This long what specifies is that the cli will only expect the long form of the flag name i.e. --permissioned not the short version which would be -p.

long,
help = "Deploy static network where validators can't join in a permissionless manner"
)]
pub permissioned: bool,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should where be a default value false/0 or do you want devs to explicitly decide it? (if so we'd need to update create subnet flows in docs too)

Copy link
Contributor Author

@adlrocha adlrocha Dec 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default value for bool flags is already false. It will only be set to true if someone passes explicitly the flag.

@adlrocha adlrocha merged commit 68d5c10 into dev Dec 5, 2023
3 checks passed
@adlrocha adlrocha deleted the ipc-304-permissioning branch December 5, 2023 16:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants