Skip to content

Commit ccb20b2

Browse files
bidzyyysqalisander
andauthored
build: bump nitro-testnode (#864)
Co-authored-by: Alisander Qoshqosh <[email protected]>
1 parent d718faf commit ccb20b2

File tree

15 files changed

+89
-66
lines changed

15 files changed

+89
-66
lines changed

Cargo.lock

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ alloy = { version = "=0.7.3", features = [
113113
"providers",
114114
"provider-http",
115115
"rpc-client",
116+
"json-rpc",
116117
"rpc-types-eth",
117118
"signer-local",
118119
"getrandom",

benches/src/erc1155_metadata_uri.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use alloy::{
44
providers::ProviderBuilder,
55
sol,
66
sol_types::SolCall,
7-
uint,
87
};
98
use e2e::{constructor, receipt, Account};
109

examples/erc1155-supply/tests/erc1155-supply.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
use abi::Erc1155Supply;
55
use alloy::primitives::{aliases::B32, uint, Address, U256};
6-
use e2e::{receipt, send, watch, Account, EventExt, Panic, PanicCode};
6+
use e2e::{receipt, send, watch, Account, EventExt, RustPanic};
77
use mock::{receiver, receiver::ERC1155ReceiverMock};
88

99
mod abi;
@@ -270,7 +270,7 @@ async fn mint_panics_on_total_supply_overflow(
270270
let err = send!(contract.mint(alice_addr, token_id, three, vec![].into()))
271271
.expect_err("should panic due to total_supply overflow");
272272

273-
assert!(err.panicked_with(PanicCode::ArithmeticOverflow));
273+
assert!(err.panicked());
274274

275275
Ok(())
276276
}
@@ -295,7 +295,7 @@ async fn mint_panics_on_total_supply_all_overflow(
295295
))
296296
.expect_err("should panic due to total_supply_all overflow");
297297

298-
assert!(err.panicked_with(PanicCode::ArithmeticOverflow));
298+
assert!(err.panicked());
299299

300300
Ok(())
301301
}

examples/erc20-flash-mint/tests/erc20_flash_mint.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
use abi::Erc20FlashMint;
44
use alloy::primitives::{address, uint, Address, U256};
5-
use e2e::{receipt, send, watch, Account, EventExt, Panic, PanicCode, Revert};
5+
use e2e::{receipt, send, watch, Account, EventExt, Revert, RustPanic};
66
use eyre::Result;
77
use mock::{borrower, borrower::ERC3156FlashBorrowerMock};
88
use stylus_sdk::alloy_sol_types::SolCall;
@@ -541,7 +541,7 @@ async fn flash_loan_reverts_when_allowance_overflows(
541541
))
542542
.expect_err("should panic due to allowance overflow");
543543

544-
assert!(err.panicked_with(PanicCode::ArithmeticOverflow));
544+
assert!(err.panicked());
545545

546546
Ok(())
547547
}

examples/erc20/tests/erc20.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use abi::Erc20;
55
use alloy::primitives::{aliases::B32, uint, Address, U256};
66
use e2e::{
77
constructor, receipt, send, watch, Account, Constructor,
8-
ContractInitializationError, EventExt, Panic, PanicCode, Revert,
8+
ContractInitializationError, EventExt, Revert, RustPanic,
99
};
1010
use eyre::Result;
1111

@@ -152,7 +152,7 @@ async fn mints_rejects_overflow(alice: Account) -> Result<()> {
152152
let err = send!(contract.mint(alice_addr, one))
153153
.expect_err("should not exceed U256::MAX");
154154

155-
assert!(err.panicked_with(PanicCode::ArithmeticOverflow));
155+
assert!(err.panicked());
156156

157157
let Erc20::balanceOfReturn { balance } =
158158
contract.balanceOf(alice_addr).call().await?;

examples/erc4626/tests/erc4626.rs

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
use abi::Erc4626;
44
use alloy::primitives::{uint, Address, U256};
55
use e2e::{
6-
constructor, receipt, send, watch, Account, Constructor, EventExt, Panic,
7-
PanicCode, Revert,
6+
constructor, receipt, send, watch, Account, Constructor, EventExt, Revert,
7+
RustPanic,
88
};
99
use eyre::Result;
1010
use mock::{
@@ -317,7 +317,7 @@ mod convert_to_shares {
317317
.await
318318
.expect_err("should panics due to `Overflow`");
319319

320-
assert!(err.panicked_with(PanicCode::ArithmeticOverflow));
320+
assert!(err.panicked());
321321
Ok(())
322322
}
323323

@@ -341,7 +341,7 @@ mod convert_to_shares {
341341
.await
342342
.expect_err("should panic due to decimal offset overflow");
343343

344-
assert!(err.panicked_with(PanicCode::ArithmeticOverflow));
344+
assert!(err.panicked());
345345

346346
Ok(())
347347
}
@@ -453,7 +453,7 @@ mod convert_to_assets {
453453
.await
454454
.expect_err("should panic due to decimal offset overflow");
455455

456-
assert!(err.panicked_with(PanicCode::ArithmeticOverflow));
456+
assert!(err.panicked());
457457

458458
Ok(())
459459
}
@@ -578,7 +578,7 @@ mod preview_deposit {
578578
.await
579579
.expect_err("should panics due to `Overflow`");
580580

581-
assert!(err.panicked_with(PanicCode::ArithmeticOverflow));
581+
assert!(err.panicked());
582582
Ok(())
583583
}
584584

@@ -602,7 +602,7 @@ mod preview_deposit {
602602
.await
603603
.expect_err("should panic due to decimal offset overflow");
604604

605-
assert!(err.panicked_with(PanicCode::ArithmeticOverflow));
605+
assert!(err.panicked());
606606

607607
Ok(())
608608
}
@@ -833,7 +833,7 @@ mod deposit {
833833
let err = send!(contract.deposit(U256::MAX, bob.address()))
834834
.expect_err("should panics due to `Overflow`");
835835

836-
assert!(err.panicked_with(PanicCode::ArithmeticOverflow));
836+
assert!(err.panicked());
837837
Ok(())
838838
}
839839

@@ -859,7 +859,7 @@ mod deposit {
859859
let err = send!(contract.deposit(assets, alice.address()))
860860
.expect_err("should panic due to decimal offset overflow");
861861

862-
assert!(err.panicked_with(PanicCode::ArithmeticOverflow));
862+
assert!(err.panicked());
863863

864864
Ok(())
865865
}
@@ -951,7 +951,7 @@ mod preview_mint {
951951
.await
952952
.expect_err("should return `Overflow`");
953953

954-
assert!(err.panicked_with(PanicCode::ArithmeticOverflow));
954+
assert!(err.panicked());
955955
Ok(())
956956
}
957957

@@ -975,7 +975,7 @@ mod preview_mint {
975975
.await
976976
.expect_err("should panic due to decimal offset overflow");
977977

978-
assert!(err.panicked_with(PanicCode::ArithmeticOverflow));
978+
assert!(err.panicked());
979979

980980
Ok(())
981981
}
@@ -1107,7 +1107,7 @@ mod mint {
11071107
let err = send!(contract.mint(U256::MAX, alice.address()))
11081108
.expect_err("should return `Overflow`");
11091109

1110-
assert!(err.panicked_with(PanicCode::ArithmeticOverflow));
1110+
assert!(err.panicked());
11111111
Ok(())
11121112
}
11131113

@@ -1134,7 +1134,7 @@ mod mint {
11341134
let err = send!(contract.mint(shares, alice.address()))
11351135
.expect_err("should panic due to decimal offset overflow");
11361136

1137-
assert!(err.panicked_with(PanicCode::ArithmeticOverflow));
1137+
assert!(err.panicked());
11381138

11391139
Ok(())
11401140
}
@@ -1317,7 +1317,7 @@ mod max_withdraw {
13171317
.await
13181318
.expect_err("should panic due to overflow");
13191319

1320-
assert!(err.panicked_with(PanicCode::ArithmeticOverflow));
1320+
assert!(err.panicked());
13211321

13221322
Ok(())
13231323
}
@@ -1342,7 +1342,7 @@ mod max_withdraw {
13421342
.await
13431343
.expect_err("should panic due to decimal offset overflow");
13441344

1345-
assert!(err.panicked_with(PanicCode::ArithmeticOverflow));
1345+
assert!(err.panicked());
13461346

13471347
Ok(())
13481348
}
@@ -1449,7 +1449,7 @@ mod preview_withdraw {
14491449
.await
14501450
.expect_err("should panics due to `Overflow`");
14511451

1452-
assert!(err.panicked_with(PanicCode::ArithmeticOverflow));
1452+
assert!(err.panicked());
14531453
Ok(())
14541454
}
14551455

@@ -1473,7 +1473,7 @@ mod preview_withdraw {
14731473
.await
14741474
.expect_err("should panic due to decimal offset overflow");
14751475

1476-
assert!(err.panicked_with(PanicCode::ArithmeticOverflow));
1476+
assert!(err.panicked());
14771477

14781478
Ok(())
14791479
}
@@ -1684,7 +1684,7 @@ mod withdraw {
16841684
))
16851685
.expect_err("should panic due to overflow");
16861686

1687-
assert!(err.panicked_with(PanicCode::ArithmeticOverflow));
1687+
assert!(err.panicked());
16881688

16891689
Ok(())
16901690
}
@@ -2168,7 +2168,7 @@ mod withdraw {
21682168
))
21692169
.expect_err("should panic due to decimal offset overflow");
21702170

2171-
assert!(err.panicked_with(PanicCode::ArithmeticOverflow));
2171+
assert!(err.panicked());
21722172

21732173
Ok(())
21742174
}
@@ -2379,7 +2379,7 @@ mod preview_redeem {
23792379
.await
23802380
.expect_err("should return `Overflow`");
23812381

2382-
assert!(err.panicked_with(PanicCode::ArithmeticOverflow));
2382+
assert!(err.panicked());
23832383
Ok(())
23842384
}
23852385

@@ -2403,7 +2403,7 @@ mod preview_redeem {
24032403
.await
24042404
.expect_err("should panic due to decimal offset overflow");
24052405

2406-
assert!(err.panicked_with(PanicCode::ArithmeticOverflow));
2406+
assert!(err.panicked());
24072407

24082408
Ok(())
24092409
}

examples/safe-erc20/tests/safe_erc20_erc1363.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use abi::{Erc1363Receiver, Erc1363Spender, Erc20, SafeErc20};
44
use alloy::primitives::uint;
55
use alloy_primitives::{Bytes, U256};
6-
use e2e::{receipt, send, watch, Account, EventExt, Panic, PanicCode, Revert};
6+
use e2e::{receipt, send, watch, Account, EventExt, Revert, RustPanic};
77
use mock::{erc1363, erc1363::ERC1363Mock, erc1363_receiver, erc1363_spender};
88

99
mod abi;
@@ -455,7 +455,7 @@ mod approvals {
455455
))
456456
.expect_err("should not exceed U256::MAX");
457457

458-
assert!(err.panicked_with(PanicCode::ArithmeticOverflow));
458+
assert!(err.panicked());
459459

460460
Ok(())
461461
}

examples/safe-erc20/tests/safe_erc20_erc20.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use abi::{Erc20, SafeErc20};
44
use alloy::primitives::uint;
55
use alloy_primitives::U256;
6-
use e2e::{receipt, send, watch, Account, EventExt, Panic, PanicCode, Revert};
6+
use e2e::{receipt, send, watch, Account, EventExt, Revert, RustPanic};
77
use mock::{erc20, erc20::ERC20Mock};
88

99
mod abi;
@@ -453,7 +453,7 @@ mod approvals {
453453
))
454454
.expect_err("should not exceed U256::MAX");
455455

456-
assert!(err.panicked_with(PanicCode::ArithmeticOverflow));
456+
assert!(err.panicked());
457457

458458
Ok(())
459459
}

examples/safe-erc20/tests/safe_erc20_erc20_that_does_not_return.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use abi::{Erc20, SafeErc20};
44
use alloy::primitives::uint;
55
use alloy_primitives::U256;
6-
use e2e::{receipt, send, watch, Account, EventExt, Panic, PanicCode, Revert};
6+
use e2e::{receipt, send, watch, Account, EventExt, Revert, RustPanic};
77
use mock::{erc20_no_return, erc20_no_return::ERC20NoReturnMock};
88

99
mod abi;
@@ -455,7 +455,7 @@ mod approvals {
455455
))
456456
.expect_err("should exceed U256::MAX");
457457

458-
assert!(err.panicked_with(PanicCode::ArithmeticOverflow));
458+
assert!(err.panicked());
459459

460460
Ok(())
461461
}

0 commit comments

Comments
 (0)