Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update borsh and nearcore crate versions in SDK #639

Merged
merged 12 commits into from
Dec 2, 2021
377 changes: 322 additions & 55 deletions examples/callback-results/Cargo.lock

Large diffs are not rendered by default.

Binary file modified examples/callback-results/res/callback_results.wasm
Binary file not shown.
377 changes: 322 additions & 55 deletions examples/cross-contract-high-level/Cargo.lock

Large diffs are not rendered by default.

Binary file not shown.
377 changes: 322 additions & 55 deletions examples/cross-contract-low-level/Cargo.lock

Large diffs are not rendered by default.

Binary file not shown.
369 changes: 318 additions & 51 deletions examples/fungible-token/Cargo.lock

Large diffs are not rendered by default.

Binary file modified examples/fungible-token/res/defi.wasm
Binary file not shown.
Binary file modified examples/fungible-token/res/fungible_token.wasm
Binary file not shown.
749 changes: 713 additions & 36 deletions examples/gas-fee-tester/Cargo.lock

Large diffs are not rendered by default.

Binary file modified examples/gas-fee-tester/res/gas_fee_tester.wasm
Binary file not shown.
749 changes: 713 additions & 36 deletions examples/lockable-fungible-token/Cargo.lock

Large diffs are not rendered by default.

Binary file modified examples/lockable-fungible-token/res/lockable_fungible_token.wasm
Binary file not shown.
20 changes: 2 additions & 18 deletions examples/lockable-fungible-token/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,29 +250,13 @@ impl FunToken {
#[cfg(test)]
mod tests {
use near_sdk::test_utils::test_env::{alice, bob, carol};
use near_sdk::test_utils::VMContextBuilder;
use near_sdk::{testing_env, VMContext};

use super::*;

fn get_context(predecessor_account_id: AccountId) -> VMContext {
VMContext {
current_account_id: alice().into(),
signer_account_id: bob().into(),
signer_account_pk: vec![0, 1, 2],
predecessor_account_id: predecessor_account_id.into(),
input: vec![],
block_index: 0,
block_timestamp: 0,
account_balance: 0,
account_locked_balance: 0,
storage_usage: 10u64.pow(6),
attached_deposit: 0,
prepaid_gas: 10u64.pow(18),
random_seed: vec![0, 1, 2],
is_view: false,
output_data_receivers: vec![],
epoch_height: 0,
}
VMContextBuilder::new().predecessor_account_id(predecessor_account_id).build()
}

#[test]
Expand Down
Loading