Skip to content

Commit fe90bee

Browse files
committed
feat(target_chains/aptos): update libs + toolchain to 4.5.0
1 parent 27dba0f commit fe90bee

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

.github/workflows/ci-aptos-contract.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
- uses: actions/checkout@v3
2222

2323
- name: Download CLI
24-
run: wget https://github.com/aptos-labs/aptos-core/releases/download/aptos-cli-v3.1.0/aptos-cli-3.1.0-Ubuntu-22.04-x86_64.zip
24+
run: wget https://github.com/aptos-labs/aptos-core/releases/download/aptos-cli-v4.5.0/aptos-cli-4.5.0-Ubuntu-22.04-x86_64.zip
2525

2626
- name: Unzip CLI
27-
run: unzip aptos-cli-3.1.0-Ubuntu-22.04-x86_64.zip
27+
run: unzip aptos-cli-4.5.0-Ubuntu-22.04-x86_64.zip
2828

2929
- name: Run tests
3030
run: ./aptos move test

target_chains/aptos/contracts/Move.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ version = "0.0.1"
44
upgrade_policy = "compatible"
55

66
[dependencies]
7-
AptosFramework = { git = "https://github.com/aptos-labs/aptos-core.git", subdir = "aptos-move/framework/aptos-framework/", rev = "6f83bc6d02207298b2dee91133d75538789bf582" }
8-
MoveStdlib = { git = "https://github.com/aptos-labs/aptos-core.git", subdir = "aptos-move/framework/move-stdlib/", rev = "6f83bc6d02207298b2dee91133d75538789bf582" }
9-
AptosStdlib = { git = "https://github.com/aptos-labs/aptos-core.git", subdir = "aptos-move/framework/aptos-stdlib/", rev = "6f83bc6d02207298b2dee91133d75538789bf582" }
10-
AptosToken = { git = "https://github.com/aptos-labs/aptos-core.git", subdir = "aptos-move/framework/aptos-token/", rev = "6f83bc6d02207298b2dee91133d75538789bf582" }
11-
Wormhole = { git = "https://github.com/wormhole-foundation/wormhole.git", subdir = "aptos/wormhole", rev = "b8676f09a6e4a92bbaecb5f3d59b5e9b778de082" }
12-
Deployer = { git = "https://github.com/wormhole-foundation/wormhole.git", subdir = "aptos/deployer", rev = "b8676f09a6e4a92bbaecb5f3d59b5e9b778de082" }
7+
AptosFramework = { git = "https://github.com/aptos-labs/aptos-core.git", subdir = "aptos-move/framework/aptos-framework/", rev = "47f0bf397eb5ca43257bfa775a6b28e7b7faf8b3" }
8+
MoveStdlib = { git = "https://github.com/aptos-labs/aptos-core.git", subdir = "aptos-move/framework/move-stdlib/", rev = "47f0bf397eb5ca43257bfa775a6b28e7b7faf8b3" }
9+
AptosStdlib = { git = "https://github.com/aptos-labs/aptos-core.git", subdir = "aptos-move/framework/aptos-stdlib/", rev = "47f0bf397eb5ca43257bfa775a6b28e7b7faf8b3" }
10+
AptosToken = { git = "https://github.com/aptos-labs/aptos-core.git", subdir = "aptos-move/framework/aptos-token/", rev = "47f0bf397eb5ca43257bfa775a6b28e7b7faf8b3" }
11+
Wormhole = { git = "https://github.com/ali-bahjati/wormhole.git", subdir = "aptos/wormhole", rev = "aptos/upgrade-4.5.0" }
12+
Deployer = { git = "https://github.com/ali-bahjati/wormhole.git", subdir = "aptos/deployer", rev = "aptos/upgrade-4.5.0" }
1313

1414
[addresses]
1515
pyth = "_"

target_chains/aptos/contracts/sources/pyth.move

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,8 @@ module pyth::pyth_test {
551551
data_sources: vector<DataSource>,
552552
update_fee: u64,
553553
to_mint: u64): (BurnCapability<AptosCoin>, MintCapability<AptosCoin>, Coin<AptosCoin>) {
554+
let (burn_capability, mint_capability) = aptos_coin::initialize_for_test(aptos_framework);
555+
554556
// Initialize wormhole with a large message collection fee
555557
wormhole::wormhole_test::setup(100000);
556558

@@ -563,7 +565,6 @@ module pyth::pyth_test {
563565
let (_pyth, signer_capability) = account::create_resource_account(&deployer, b"pyth");
564566
pyth::init_test(signer_capability, stale_price_threshold, governance_emitter_chain_id, governance_emitter_address, data_sources, update_fee);
565567

566-
let (burn_capability, mint_capability) = aptos_coin::initialize_for_test(aptos_framework);
567568
let coins = coin::mint(to_mint, &mint_capability);
568569
(burn_capability, mint_capability, coins)
569570
}
@@ -753,6 +754,8 @@ module pyth::pyth_test {
753754
to_mint: u64
754755
): (BurnCapability<AptosCoin>, MintCapability<AptosCoin>, Coin<AptosCoin>) {
755756
let aptos_framework_account = std::account::create_account_for_test(@aptos_framework);
757+
let (burn_capability, mint_capability) = aptos_coin::initialize_for_test(aptos_framework);
758+
756759
std::timestamp::set_time_has_started_for_testing(&aptos_framework_account);
757760
wormhole::init_test(
758761
22,
@@ -777,7 +780,6 @@ module pyth::pyth_test {
777780
data_sources,
778781
50);
779782

780-
let (burn_capability, mint_capability) = aptos_coin::initialize_for_test(aptos_framework);
781783
let coins = coin::mint(to_mint, &mint_capability);
782784
(burn_capability, mint_capability, coins)
783785
}

0 commit comments

Comments
 (0)