|
1 | | -package com.strategyobject.substrateclient.api.pallet.balances; |
| 1 | +package com.strategyobject.substrateclient.rpc.api; |
2 | 2 |
|
3 | 3 | import static org.hamcrest.MatcherAssert.assertThat; |
4 | 4 | import static org.hamcrest.Matchers.equalTo; |
5 | 5 |
|
6 | 6 | import com.strategyobject.substrateclient.common.convert.HexConverter; |
7 | | -import com.strategyobject.substrateclient.rpc.api.ImmortalEra; |
8 | | -import com.strategyobject.substrateclient.rpc.api.SignedAdditionalExtra; |
9 | | -import com.strategyobject.substrateclient.rpc.api.SignedExtra; |
10 | 7 | import com.strategyobject.substrateclient.rpc.api.primitives.BlockHash; |
11 | 8 | import com.strategyobject.substrateclient.rpc.api.primitives.Hash256; |
12 | 9 | import com.strategyobject.substrateclient.rpc.api.primitives.Index; |
@@ -39,7 +36,7 @@ void setUp() { |
39 | 36 | * |
40 | 37 | * @param includeMetadataHash whether to include metadata hash in the SignedExtra |
41 | 38 | * @param expectedHash the expected hex output of the SCALE data |
42 | | - * @throws Exception if an error occurs during serialization |
| 39 | + * @throws ExBalancesTestception if an error occurs during serialization |
43 | 40 | */ |
44 | 41 | @ParameterizedTest |
45 | 42 | @CsvSource({ "false,0x000000", "true,0x00000000" }) |
@@ -69,8 +66,8 @@ void testSignedExtra(boolean includeMetadataHash, String expectedHash) throws Ex |
69 | 66 | @ParameterizedTest |
70 | 67 | @CsvSource( |
71 | 68 | { |
72 | | - "false,0x8d0000000100000077000000000000000000000000000000000000000000000000000000000000777700000000000000000000000000000000000000000000000000000000000077", |
73 | | - "true,0x8d000000010000007700000000000000000000000000000000000000000000000000000000000077770000000000000000000000000000000000000000000000000000000000007700", |
| 69 | + "false,0x970000000100000077000000000000000000000000000000000000000000000000000000000000777700000000000000000000000000000000000000000000000000000000000077", |
| 70 | + "true,0x97000000010000007700000000000000000000000000000000000000000000000000000000000077770000000000000000000000000000000000000000000000000000000000007700", |
74 | 71 | } |
75 | 72 | ) |
76 | 73 | void testSignedExtraAdditional(boolean includeMetadataHash, String expectedHash) throws Exception { |
|
0 commit comments