Skip to content

Commit 35aa4ec

Browse files
author
Evgeny Kuzyakov
committed
Fixes
1 parent ea4ddeb commit 35aa4ec

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

build_local.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
22
set -e
33

4-
RUSTFLAGS='-C link-arg=-s' cargo +stable build --target wasm32-unknown-unknown --release
4+
RUSTFLAGS='-C link-arg=-s' cargo build --target wasm32-unknown-unknown --release
55
cp target/wasm32-unknown-unknown/release/fundraiser.wasm ./res/fundraiser_local.wasm

src/sale.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ use crate::*;
1313
const ONE_YOCTO: Balance = 1;
1414
const GAS_NEAR_DEPOSIT: Gas = BASE_GAS;
1515
const GAS_AFTER_FT_ON_TRANSFER_NEAR_DEPOSIT: Gas = Gas(40_000_000_000_000);
16-
const GAS_GET_ACCOUNT_STAKED_BALANCE: Gas = Gas(25_000_000_000_000);
17-
const GAS_ON_GET_ACCOUNT_STAKED_BALANCE: Gas = Gas(25_000_000_000_000);
1816

1917
#[ext_contract(ext_wrap_near)]
2018
pub trait ExtWrapNear {
@@ -252,7 +250,7 @@ impl Contract {
252250
if wrap_amount > 0 {
253251
// Assuming it will succeed
254252
ext_wrap_near::near_deposit(
255-
&AccountId::new_unchecked(WRAP_NEAR_ACCOUNT.to_string()),
253+
AccountId::new_unchecked(WRAP_NEAR_ACCOUNT.to_string()),
256254
wrap_amount,
257255
GAS_NEAR_DEPOSIT,
258256
);
@@ -284,7 +282,7 @@ impl Contract {
284282
))
285283
.into(),
286284
PromiseOrValue::Value(value) => {
287-
ext_self::internal_after_ft_on_transfer_near_deposit(value.0, sender_id, amount)
285+
self.internal_finalize_near_deposit(value.0, sender_id, amount)
288286
}
289287
}
290288
}

0 commit comments

Comments
 (0)