Skip to content

Commit

Permalink
Fixed wasm compilation (#24)
Browse files Browse the repository at this point in the history
* fix

* update checksum

* updated build_release.sh
  • Loading branch information
alienHunterOnMars authored Nov 23, 2021
1 parent 5986ff7 commit d13df3b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions artifacts/checksums.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
c3d45ee3e0dc6e11e35d8b6ae0462d486ebd23b14203e5bc6af4d79b06497838 astroport_airdrop.wasm
81b21c3ab14f052b0b014cc33cadf7a31903204f3a79fc5559b056d4b6f815bd astroport_auction.wasm
1f6e5b72504ae2bd06c5e67a61c39e1e3a16230e61f699a272348503f5467be2 astroport_lockdrop.wasm
9f83587effbb0100788a94712ba0d67a7c0d32f7643e9a147d2f3f8878b5ae39 astroport_airdrop.wasm
202f3451f6c4a759e473a7ab1bab590f15a01a00455dfa56d7f8b441d44e6876 astroport_auction.wasm
ec84f1e6359c156e1774c61e9a5252fc7c2312e8ea22086058c27e984df99a3b astroport_lockdrop.wasm
2 changes: 1 addition & 1 deletion build_release.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Optimized builds
docker run --rm -v "$(pwd)":/code --mount type=bind,source=/.cargo/git,target=/usr/local/cargo/git --mount type=bind,source=/.cargo/registry,target=/usr/local/cargo/registry cosmwasm/workspace-optimizer:0.12.3
docker run --rm -v "$(pwd)":/code --mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry cosmwasm/workspace-optimizer:0.12.4
8 changes: 4 additions & 4 deletions contracts/lockdrop/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ pub fn handle_migrate_liquidity(

let mut assets = vec![];

for asset_info in terraswap_lp_info.asset_infos {
for asset_info in terraswap_lp_info.asset_infos.iter() {
assets.push(terraswap::asset::Asset {
amount: match &asset_info {
terraswap::asset::AssetInfo::NativeToken { denom } => {
Expand All @@ -533,7 +533,7 @@ pub fn handle_migrate_liquidity(
)?
}
},
info: asset_info,
info: asset_info.to_owned(),
})
}

Expand Down Expand Up @@ -1310,8 +1310,8 @@ pub fn callback_deposit_liquidity_in_astroport(
let mut assets = vec![];
let mut coins = vec![];

for prev_asset in prev_assets {
match prev_asset.info {
for prev_asset in prev_assets.iter() {
match prev_asset.info.clone() {
terraswap::asset::AssetInfo::NativeToken { denom } => {
let mut new_asset = astroport::asset::Asset {
info: astroport::asset::AssetInfo::NativeToken {
Expand Down

0 comments on commit d13df3b

Please sign in to comment.