Skip to content

Commit

Permalink
chore: update ic-hs to a version that builds from source (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
sesi200 authored Mar 7, 2022
1 parent e7f5050 commit a78e8e9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ic-ref.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@ jobs:
build: [ linux-stable ]
include:
- build: linux-stable
ghc: '8.8.4'
spec: '0.18.0'
ghc: '8.10.7'
spec: 'f771c6b3e7cdde413d3b960f63165c6ecf3e0b7c'
os: ubuntu-latest
rust: 1.55.0

steps:
- uses: haskell/actions/setup@v1
with:
ghc-version: ${{ matrix.ghc }}
- uses: actions/checkout@v2
with:
path: main
Expand Down
2 changes: 1 addition & 1 deletion ic-identity-hsm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//! # let slot_index = 0;
//! # let key_id = "";
//! let agent = Agent::builder()
//! .with_transport(ReqwestHttpReplicaV2Transport::create(replica_url))
//! .with_transport(ReqwestHttpReplicaV2Transport::create(replica_url)?)
//! .with_identity(HardwareIdentity::new(lib_path, slot_index, key_id, || Ok("hunter2".to_string()))?)
//! .build();
//! # Ok(())
Expand Down
6 changes: 3 additions & 3 deletions ref-tests/tests/ic-ref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ mod management_canister {
#[test]
fn provisional_create_canister_with_cycles() {
with_wallet_canister(None, |agent, wallet_id| async move {
let max_canister_balance: u64 = 1152921504606846976;
let default_canister_balance: u128 = 100_000_000_000_000;

// empty cycle balance on create
let wallet = Wallet::create(&agent, wallet_id);
Expand Down Expand Up @@ -643,7 +643,7 @@ mod management_canister {
assert_eq!(result.cycles, 0_u64);

let ic00 = ManagementCanister::create(&agent);
// cycle balance is max_canister_balance when creating with
// cycle balance is default_canister_balance when creating with
// provisional_create_canister_with_cycles(None)
let (canister_id_1,) = ic00
.create_canister()
Expand All @@ -654,7 +654,7 @@ mod management_canister {
.canister_status(&canister_id_1)
.call_and_wait(create_waiter())
.await?;
assert_eq!(result.0.cycles, max_canister_balance);
assert_eq!(result.0.cycles, default_canister_balance);

// cycle balance should be amount specified to
// provisional_create_canister_with_cycles call
Expand Down

0 comments on commit a78e8e9

Please sign in to comment.