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

update create subnet gateway type to address #117

Merged
merged 1 commit into from
Jun 12, 2023
Merged
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 subnet-actor/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ impl State {
let state = State {
name: params.name,
parent_id: params.parent,
ipc_gateway_addr: Address::new_id(params.ipc_gateway_addr),
ipc_gateway_addr: params.ipc_gateway_addr,
consensus: params.consensus,
total_stake: TokenAmount::zero(),
min_validator_stake: if params.min_validator_stake < min_stake {
Expand Down
2 changes: 1 addition & 1 deletion subnet-actor/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ pub enum Status {
pub struct ConstructParams {
pub parent: SubnetID,
pub name: String,
pub ipc_gateway_addr: u64,
pub ipc_gateway_addr: Address,
pub consensus: ConsensusType,
pub min_validator_stake: TokenAmount,
pub min_validators: u64,
Expand Down
2 changes: 1 addition & 1 deletion subnet-actor/tests/actor_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ mod test {
ConstructParams {
parent: SubnetID::from_str(ROOT_STR_ID).unwrap(),
name: NETWORK_NAME.to_string(),
ipc_gateway_addr: IPC_GATEWAY_ADDR,
ipc_gateway_addr: Address::new_id(IPC_GATEWAY_ADDR),
consensus: ConsensusType::Dummy,
min_validator_stake: Default::default(),
min_validators: 0,
Expand Down