Skip to content

Commit

Permalink
Update near-account-id version
Browse files Browse the repository at this point in the history
  • Loading branch information
staffik committed Nov 5, 2023
1 parent 0e82e48 commit 861bdca
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 20 deletions.
44 changes: 26 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ lru = "0.7.2"
memmap2 = "0.5"
memoffset = "0.8"
more-asserts = "0.2"
near-account-id = { version = "1.0.0-alpha.1", features = ["internal_unstable", "serde", "borsh"] }
near-account-id = { version = "1.0.0-alpha.2", features = ["internal_unstable", "serde", "borsh"] }
near-actix-test-utils = { path = "test-utils/actix-test-utils" }
near-amend-genesis = { path = "tools/amend-genesis" }
near-database-tool = { path = "tools/database" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ fn check_meta_tx_execution(
.nonce;
let user_pubk = match sender.get_account_type() {
AccountType::NearImplicitAccount => PublicKey::from_near_implicit_account(&sender).unwrap(),
AccountType::EthImplicitAccount => PublicKey::from_seed(KeyType::SECP256K1, sender.as_ref()),
AccountType::EthImplicitAccount => {
PublicKey::from_seed(KeyType::SECP256K1, sender.as_ref())
}
AccountType::NamedAccount => PublicKey::from_seed(KeyType::ED25519, sender.as_ref()),
};
let user_nonce_before = node_user.get_access_key(&sender, &user_pubk).unwrap().nonce;
Expand Down

0 comments on commit 861bdca

Please sign in to comment.