@@ -7,7 +7,7 @@ abigen!(TestPowContract, "test_artifacts/pow/out/debug/pow-abi.json");
7
7
#[ tokio:: test]
8
8
#[ should_panic( expected = "ArithmeticOverflow" ) ]
9
9
async fn overflowing_pow_u64_panics ( ) {
10
- let wallet = launch_provider_and_get_single_wallet ( ) . await ;
10
+ let wallet = launch_provider_and_get_wallet ( ) . await ;
11
11
let ( pow_instance, _) = get_pow_test_instance ( wallet) . await ;
12
12
pow_instance
13
13
. u64_overflow ( 100u64 , 100u64 )
@@ -20,7 +20,7 @@ async fn overflowing_pow_u64_panics() {
20
20
// TODO won't overflow until https://github.com/FuelLabs/fuel-specs/issues/90 lands
21
21
// #[should_panic(expected = "ArithmeticOverflow")]
22
22
async fn overflowing_pow_u32_panics ( ) {
23
- let wallet = launch_provider_and_get_single_wallet ( ) . await ;
23
+ let wallet = launch_provider_and_get_wallet ( ) . await ;
24
24
let ( pow_instance, _) = get_pow_test_instance ( wallet) . await ;
25
25
pow_instance
26
26
. u32_overflow ( 10u32 , 11u32 )
@@ -32,7 +32,7 @@ async fn overflowing_pow_u32_panics() {
32
32
#[ tokio:: test]
33
33
#[ should_panic( expected = "ArithmeticOverflow" ) ]
34
34
async fn overflowing_pow_u32_panics_max ( ) {
35
- let wallet = launch_provider_and_get_single_wallet ( ) . await ;
35
+ let wallet = launch_provider_and_get_wallet ( ) . await ;
36
36
let ( pow_instance, _) = get_pow_test_instance ( wallet) . await ;
37
37
pow_instance
38
38
. u32_overflow ( u32:: MAX , u32:: MAX )
@@ -45,15 +45,15 @@ async fn overflowing_pow_u32_panics_max() {
45
45
// TODO won't overflow until https://github.com/FuelLabs/fuel-specs/issues/90 lands
46
46
// #[should_panic(expected = "ArithmeticOverflow")]
47
47
async fn overflowing_pow_u16_panics ( ) {
48
- let wallet = launch_provider_and_get_single_wallet ( ) . await ;
48
+ let wallet = launch_provider_and_get_wallet ( ) . await ;
49
49
let ( pow_instance, _) = get_pow_test_instance ( wallet) . await ;
50
50
pow_instance. u16_overflow ( 10u16 , 5u16 ) . call ( ) . await . unwrap ( ) ;
51
51
}
52
52
53
53
#[ tokio:: test]
54
54
#[ should_panic( expected = "ArithmeticOverflow" ) ]
55
55
async fn overflowing_pow_u16_panics_max ( ) {
56
- let wallet = launch_provider_and_get_single_wallet ( ) . await ;
56
+ let wallet = launch_provider_and_get_wallet ( ) . await ;
57
57
let ( pow_instance, _) = get_pow_test_instance ( wallet) . await ;
58
58
pow_instance
59
59
. u16_overflow ( u16:: MAX , u16:: MAX )
@@ -66,15 +66,15 @@ async fn overflowing_pow_u16_panics_max() {
66
66
// TODO won't overflow until https://github.com/FuelLabs/fuel-specs/issues/90 lands
67
67
// #[should_panic(expected = "ArithmeticOverflow")]
68
68
async fn overflowing_pow_u8_panics ( ) {
69
- let wallet = launch_provider_and_get_single_wallet ( ) . await ;
69
+ let wallet = launch_provider_and_get_wallet ( ) . await ;
70
70
let ( pow_instance, _) = get_pow_test_instance ( wallet) . await ;
71
71
pow_instance. u8_overflow ( 10u8 , 3u8 ) . call ( ) . await . unwrap ( ) ;
72
72
}
73
73
74
74
#[ tokio:: test]
75
75
#[ should_panic( expected = "ArithmeticOverflow" ) ]
76
76
async fn overflowing_pow_u8_panics_max ( ) {
77
- let wallet = launch_provider_and_get_single_wallet ( ) . await ;
77
+ let wallet = launch_provider_and_get_wallet ( ) . await ;
78
78
let ( pow_instance, _) = get_pow_test_instance ( wallet) . await ;
79
79
pow_instance
80
80
. u8_overflow ( u8:: MAX , u8:: MAX )
@@ -88,6 +88,9 @@ async fn get_pow_test_instance(wallet: LocalWallet) -> (TestPowContract, Contrac
88
88
"test_artifacts/pow/out/debug/pow.bin" ,
89
89
& wallet,
90
90
TxParameters :: default ( ) ,
91
+ StorageConfiguration :: with_storage_path ( Some (
92
+ "test_artifacts/pow/out/debug/pow-storage_slots.json" . to_string ( ) ,
93
+ ) ) ,
91
94
)
92
95
. await
93
96
. unwrap ( ) ;
0 commit comments