Skip to content

Commit 1c8c481

Browse files
authored
Added upload, migrated provider (#535)
1 parent 85ce6d2 commit 1c8c481

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

framework/packages/abstract-interface/src/migrate.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,19 +242,22 @@ impl<Chain: CwEnv> AbstractIbc<Chain> {
242242
return Ok(false);
243243
}
244244

245+
self.client.upload_if_needed()?;
246+
self.host.upload_if_needed()?;
245247
if is_upgrade_breaking(
246248
&ibc_client_cw2_version,
247249
::ibc_client::contract::CONTRACT_VERSION,
248250
) {
249-
// Version change is breaking, need to deploy new version
251+
// Version change is breaking, need to instantiate new version
252+
250253
self.instantiate(&self.client.environment().sender_addr())?;
251254
} else {
252255
// If version is not breaking, simply migrate
253256
self.client
254-
.upload_and_migrate_if_needed(&ibc_client::MigrateMsg {})?
257+
.migrate_if_needed(&ibc_client::MigrateMsg {})?
255258
.expect("IBC client supposed to be migrated, but skipped instead");
256259
self.host
257-
.upload_and_migrate_if_needed(&ibc_host::MigrateMsg {})?
260+
.migrate_if_needed(&ibc_host::MigrateMsg {})?
258261
.expect("IBC host supposed to be migrated, but skipped instead");
259262
}
260263

interchain/scripts/state.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"osmo-test-5": {
33
"code_ids": {
4-
"abstract:account": 11304,
4+
"abstract:account": 11497,
55
"abstract:ans-host": 11341,
66
"abstract:ibc-client": 11305,
77
"abstract:ibc-host": 11306,
@@ -21,7 +21,7 @@
2121
},
2222
"pion-1": {
2323
"code_ids": {
24-
"abstract:account": 7693,
24+
"abstract:account": 8091,
2525
"abstract:ans-host": 7936,
2626
"abstract:ibc-client": 7694,
2727
"abstract:ibc-host": 7695,
@@ -41,20 +41,20 @@
4141
},
4242
"provider": {
4343
"code_ids": {
44-
"abstract:account": 39,
45-
"abstract:ans-host": 36,
46-
"abstract:ibc-client": 40,
47-
"abstract:ibc-host": 41,
48-
"abstract:module-factory": 38,
49-
"abstract:registry": 37,
44+
"abstract:account": 63,
45+
"abstract:ans-host": 62,
46+
"abstract:ibc-client": 64,
47+
"abstract:ibc-host": 65,
48+
"abstract:module-factory": 60,
49+
"abstract:registry": 61,
5050
"cw:blob": 35
5151
},
5252
"default": {
5353
"abstract:account-local-0": "cosmos1hafge5xucuc03ar5lkwac0n9yctnxq6xrgygftdl9xl3tzncgghszwuw5z",
5454
"abstract:account-local-1": "cosmos1v9dl0fw5s3jujn6emmlgch7w4ynt02nykj75pnzk8mdw7nmu3p4q0fnq48",
5555
"abstract:ans-host": "cosmos1wx0qjtlz799pfxl73y2f4dv28nukztpmq2ztavk60v534tat9cdsvutp48",
56-
"abstract:ibc-client": "cosmos1g86ckugm7v9vvpadq9szg6rlf72pdl4a6n0d8apltq5t0grecpwqg7qcv2",
57-
"abstract:ibc-host": "cosmos1ldaf3e9zxja5mrcw3clcu873wggmqhwfvqw9djjcjxxjwv59crqsm8tma5",
56+
"abstract:ibc-client": "cosmos1uspvkgrr9gfw429de02a5gx6dpl5neaw8srx4zsdd0xdtpk7gstq5ykc0u",
57+
"abstract:ibc-host": "cosmos1x7q3st5m56g0h005l7eaas7ngh52tjsct2tmgs5hzcqlme0j604qwl604h",
5858
"abstract:module-factory": "cosmos1vnj802lyyupfaez73w7axfs3xveraxen370vhcnumaufj29r5rxqdm4ntk",
5959
"abstract:registry": "cosmos1cag6cwygef6fuddgq2l44py7crpscufrza4mt3rum2axueemenmq7u74fa"
6060
}

0 commit comments

Comments
 (0)