Skip to content

Commit 5fb9bbf

Browse files
r-nearCopilotvsavchyn-dev
authored
chore: upgrade near-openapi-client to v0.8.0 via git ref (#130)
Co-authored-by: r-near <163825889+r-near@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: Vladyslav Savchyn <vsavchyn2005@gmail.com>
1 parent 37fee2c commit 5fb9bbf

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ near-gas = { version = "0.3", features = ["serde", "borsh"] }
5555
near-token = { version = "0.3", features = ["serde", "borsh"] }
5656
near-abi = "0.4.2"
5757
near-ledger = "0.9.1"
58-
near-openapi-client = "0.7"
59-
near-openapi-types = "0.7"
58+
near-openapi-client = { version = "0.8", git = "https://github.com/near/near-openapi-client-rs.git", rev = "0b9c46786934edd274a0ae91ab42c13516f50965" }
59+
near-openapi-types = { version = "0.8", git = "https://github.com/near/near-openapi-client-rs.git", rev = "0b9c46786934edd274a0ae91ab42c13516f50965" }
6060

6161
# Dev-dependencies
6262
near-primitives = { version = "0.34" }

api/tests/multiple_tx_at_same_time_from_same-_user.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ async fn multiple_tx_at_same_time_from_same_key() -> TestResult {
6060
}
6161

6262
#[tokio::test]
63+
#[allow(clippy::result_large_err)]
6364
async fn multiple_tx_at_same_time_from_different_keys() -> TestResult {
6465
let receiver: AccountId = "tmp_account".parse()?;
6566
let account: AccountId = DEFAULT_GENESIS_ACCOUNT.into();

types/src/transaction/actions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ impl From<near_openapi_types::GlobalContractIdentifier> for GlobalContractIdenti
486486
impl From<near_openapi_types::GlobalContractIdentifierView> for GlobalContractIdentifier {
487487
fn from(val: near_openapi_types::GlobalContractIdentifierView) -> Self {
488488
match val {
489-
near_openapi_types::GlobalContractIdentifierView::CryptoHash(code_hash) => {
489+
near_openapi_types::GlobalContractIdentifierView::Hash(code_hash) => {
490490
Self::CodeHash(code_hash.into())
491491
}
492492
near_openapi_types::GlobalContractIdentifierView::AccountId(account_id) => {

0 commit comments

Comments
 (0)