File tree 2 files changed +3
-5
lines changed
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e
3
3
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
5
5
cp target/wasm32-unknown-unknown/release/fundraiser.wasm ./res/fundraiser_local.wasm
Original file line number Diff line number Diff line change @@ -13,8 +13,6 @@ use crate::*;
13
13
const ONE_YOCTO : Balance = 1 ;
14
14
const GAS_NEAR_DEPOSIT : Gas = BASE_GAS ;
15
15
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 ) ;
18
16
19
17
#[ ext_contract( ext_wrap_near) ]
20
18
pub trait ExtWrapNear {
@@ -252,7 +250,7 @@ impl Contract {
252
250
if wrap_amount > 0 {
253
251
// Assuming it will succeed
254
252
ext_wrap_near:: near_deposit (
255
- & AccountId :: new_unchecked ( WRAP_NEAR_ACCOUNT . to_string ( ) ) ,
253
+ AccountId :: new_unchecked ( WRAP_NEAR_ACCOUNT . to_string ( ) ) ,
256
254
wrap_amount,
257
255
GAS_NEAR_DEPOSIT ,
258
256
) ;
@@ -284,7 +282,7 @@ impl Contract {
284
282
) )
285
283
. into ( ) ,
286
284
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)
288
286
}
289
287
}
290
288
}
You can’t perform that action at this time.
0 commit comments