Skip to content

Commit

Permalink
Framework upgrade 0.55.0
Browse files Browse the repository at this point in the history
  • Loading branch information
CostinCarabas committed Jan 9, 2025
1 parent 67f7f6b commit fd55bd9
Show file tree
Hide file tree
Showing 71 changed files with 1,124 additions and 597 deletions.
364 changes: 199 additions & 165 deletions Cargo.lock

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions bridge-proxy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,17 @@ path = "../common/mock-contracts/mock-price-aggregator"
path = "../common/mock-contracts/mock-multi-transfer-esdt"

[dependencies.multiversx-sc]
version = "=0.53.2"
version = "=0.55.0"

[dependencies.multiversx-sc-modules]
version = "0.53.2"
version = "0.55.0"

[dependencies.crowdfunding-esdt]
git = "https://github.com/multiversx/mx-contracts-rs"
rev = "e72c201"
git = "https://github.com/multiversx/mx-sdk-rs"
rev = "1771a27"

[dev-dependencies]
num-bigint = "0.4.2"

[dev-dependencies.multiversx-sc-scenario]
version = "=0.53.2"
version = "=0.55.0"
2 changes: 1 addition & 1 deletion bridge-proxy/meta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ authors = ["you"]
path = ".."

[dependencies.multiversx-sc-meta-lib]
version = "=0.53.2"
version = "=0.55.0"
5 changes: 3 additions & 2 deletions bridge-proxy/src/bridge-proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub trait BridgeProxyContract:
);
let next_tx_id = self.get_next_tx_id();
self.pending_transactions().insert(next_tx_id, eth_tx);
self.payments(next_tx_id).set(&payment);
self.payments(next_tx_id).set(&payment.clone());

Check warning on line 43 in bridge-proxy/src/bridge-proxy.rs

View workflow job for this annotation

GitHub Actions / clippy

[clippy] bridge-proxy/src/bridge-proxy.rs#L43

warning: the borrowed expression implements the required traits --> bridge-proxy/src/bridge-proxy.rs:43:39 | 43 | self.payments(next_tx_id).set(&payment.clone()); | ^^^^^^^^^^^^^^^^ help: change this to: `payment.clone()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default
Raw output
bridge-proxy/src/bridge-proxy.rs:43:39:w:warning: the borrowed expression implements the required traits
  --> bridge-proxy/src/bridge-proxy.rs:43:39
   |
43 |         self.payments(next_tx_id).set(&payment.clone());
   |                                       ^^^^^^^^^^^^^^^^ help: change this to: `payment.clone()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
   = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default


__END__

Check warning on line 43 in bridge-proxy/src/bridge-proxy.rs

View workflow job for this annotation

GitHub Actions / clippy

[clippy] bridge-proxy/src/bridge-proxy.rs#L43

warning: the borrowed expression implements the required traits --> bridge-proxy/src/bridge-proxy.rs:43:39 | 43 | self.payments(next_tx_id).set(&payment.clone()); | ^^^^^^^^^^^^^^^^ help: change this to: `payment.clone()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default
Raw output
bridge-proxy/src/bridge-proxy.rs:43:39:w:warning: the borrowed expression implements the required traits
  --> bridge-proxy/src/bridge-proxy.rs:43:39
   |
43 |         self.payments(next_tx_id).set(&payment.clone());
   |                                       ^^^^^^^^^^^^^^^^ help: change this to: `payment.clone()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
   = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default


__END__
self.batch_id(next_tx_id).set(batch_id);
}

Expand Down Expand Up @@ -172,7 +172,8 @@ pub trait BridgeProxyContract:
transfers.esdt_payments.len() == 1,
"Expected only one esdt payment"
);
transfers.esdt_payments.get(0)
let return_payment = transfers.esdt_payments.get(0);
return_payment.clone()
}

fn finish_execute_gracefully(&self, tx_id: usize) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"framework": {
"name": "multiversx-sc",
"version": "0.53.2"
"version": "0.55.0"
}
},
"abi": {
Expand Down
Loading

0 comments on commit fd55bd9

Please sign in to comment.