Skip to content

Commit

Permalink
docs: Princpial typo and unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker committed Dec 2, 2024
1 parent 56d61b2 commit bbcf37d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ To register a canister with selected `fetcher`:

```rust
fund_manager.register(
Princpial::from_text("funded_canister_id"),
Principal::from_text("funded_canister_id").unwrap(),
RegisterOpts::new().with_cycles_fetcher(
Arc::new(fetcher)
),
Expand Down Expand Up @@ -216,7 +216,7 @@ fn initialize() {
fund_manager.with_options(funding_config);

fund_manager.register(
Princpial::from_text("funded_canister_id"),
Principal::from_text("funded_canister_id").unwrap(),
RegisterOpts::new().with_cycles_fetcher(
Arc::new(FetchCyclesBalanceFromCanisterStatus::new())
),
Expand Down

0 comments on commit bbcf37d

Please sign in to comment.