Skip to content

Commit 58db7cd

Browse files
authored
redact height for multisig tests (#478)
1 parent fff596a commit 58db7cd

10 files changed

Lines changed: 19 additions & 19 deletions

packages/kusama/src/__snapshots__/assetHubKusama.multisig.proxy.e2e.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ exports[`Kusama AssetHub Multisig Proxy > success tests > 2-of-3 multisig with p
110110
"multisig": "(redacted)",
111111
"result": "Ok",
112112
"timepoint": {
113-
"height": "(rounded 12000000)",
113+
"height": "(redacted)",
114114
"index": 2,
115115
},
116116
},
@@ -143,7 +143,7 @@ exports[`Kusama AssetHub Multisig Proxy > success tests > 2-of-3 multisig with p
143143
"multisig": "(redacted)",
144144
"result": "Ok",
145145
"timepoint": {
146-
"height": "(rounded 12000000)",
146+
"height": "(redacted)",
147147
"index": 2,
148148
},
149149
},

packages/kusama/src/__snapshots__/coretimeKusama.multisig.proxy.e2e.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ exports[`Kusama Coretime Multisig Proxy > success tests > 2-of-3 multisig with p
110110
"multisig": "(redacted)",
111111
"result": "Ok",
112112
"timepoint": {
113-
"height": "(rounded 3800000)",
113+
"height": "(redacted)",
114114
"index": 2,
115115
},
116116
},
@@ -143,7 +143,7 @@ exports[`Kusama Coretime Multisig Proxy > success tests > 2-of-3 multisig with p
143143
"multisig": "(redacted)",
144144
"result": "Ok",
145145
"timepoint": {
146-
"height": "(rounded 3800000)",
146+
"height": "(redacted)",
147147
"index": 2,
148148
},
149149
},

packages/kusama/src/__snapshots__/kusama.multisig.proxy.e2e.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ exports[`Kusama Multisig with Proxy > success tests > 2-of-3 multisig with pure
110110
"multisig": "(redacted)",
111111
"result": "Ok",
112112
"timepoint": {
113-
"height": "(rounded 31000000)",
113+
"height": "(redacted)",
114114
"index": 2,
115115
},
116116
},
@@ -143,7 +143,7 @@ exports[`Kusama Multisig with Proxy > success tests > 2-of-3 multisig with pure
143143
"multisig": "(redacted)",
144144
"result": "Ok",
145145
"timepoint": {
146-
"height": "(rounded 31000000)",
146+
"height": "(redacted)",
147147
"index": 2,
148148
},
149149
},

packages/kusama/src/__snapshots__/peopleKusama.multisig.proxy.e2e.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ exports[`People Kusama Multisig Proxy > success tests > 2-of-3 multisig with pur
110110
"multisig": "(redacted)",
111111
"result": "Ok",
112112
"timepoint": {
113-
"height": "(rounded 6500000)",
113+
"height": "(redacted)",
114114
"index": 2,
115115
},
116116
},
@@ -143,7 +143,7 @@ exports[`People Kusama Multisig Proxy > success tests > 2-of-3 multisig with pur
143143
"multisig": "(redacted)",
144144
"result": "Ok",
145145
"timepoint": {
146-
"height": "(rounded 6500000)",
146+
"height": "(redacted)",
147147
"index": 2,
148148
},
149149
},

packages/polkadot/src/__snapshots__/assetHubPolkadot.multisig.proxy.e2e.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ exports[`Polkadot AssetHub Multisig Proxy > success tests > 2-of-3 multisig with
110110
"multisig": "(redacted)",
111111
"result": "Ok",
112112
"timepoint": {
113-
"height": "(rounded 10000000)",
113+
"height": "(redacted)",
114114
"index": 2,
115115
},
116116
},
@@ -143,7 +143,7 @@ exports[`Polkadot AssetHub Multisig Proxy > success tests > 2-of-3 multisig with
143143
"multisig": "(redacted)",
144144
"result": "Ok",
145145
"timepoint": {
146-
"height": "(rounded 10000000)",
146+
"height": "(redacted)",
147147
"index": 2,
148148
},
149149
},

packages/polkadot/src/__snapshots__/collectivesPolkadot.multisig.proxy.e2e.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ exports[`Polkadot Collectives Multisig Proxy > success tests > 2-of-3 multisig w
110110
"multisig": "(redacted)",
111111
"result": "Ok",
112112
"timepoint": {
113-
"height": "(rounded 7500000)",
113+
"height": "(redacted)",
114114
"index": 2,
115115
},
116116
},
@@ -143,7 +143,7 @@ exports[`Polkadot Collectives Multisig Proxy > success tests > 2-of-3 multisig w
143143
"multisig": "(redacted)",
144144
"result": "Ok",
145145
"timepoint": {
146-
"height": "(rounded 7500000)",
146+
"height": "(redacted)",
147147
"index": 2,
148148
},
149149
},

packages/polkadot/src/__snapshots__/coretimePolkadot.multisig.proxy.e2e.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ exports[`Polkadot Coretime Multisig Proxy > success tests > 2-of-3 multisig with
110110
"multisig": "(redacted)",
111111
"result": "Ok",
112112
"timepoint": {
113-
"height": "(rounded 2900000)",
113+
"height": "(redacted)",
114114
"index": 2,
115115
},
116116
},
@@ -143,7 +143,7 @@ exports[`Polkadot Coretime Multisig Proxy > success tests > 2-of-3 multisig with
143143
"multisig": "(redacted)",
144144
"result": "Ok",
145145
"timepoint": {
146-
"height": "(rounded 2900000)",
146+
"height": "(redacted)",
147147
"index": 2,
148148
},
149149
},

packages/polkadot/src/__snapshots__/peoplePolkadot.multisig.proxy.e2e.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ exports[`People Polkadot Multisig Proxy > success tests > 2-of-3 multisig with p
110110
"multisig": "(redacted)",
111111
"result": "Ok",
112112
"timepoint": {
113-
"height": "(rounded 3300000)",
113+
"height": "(redacted)",
114114
"index": 2,
115115
},
116116
},
@@ -143,7 +143,7 @@ exports[`People Polkadot Multisig Proxy > success tests > 2-of-3 multisig with p
143143
"multisig": "(redacted)",
144144
"result": "Ok",
145145
"timepoint": {
146-
"height": "(rounded 3300000)",
146+
"height": "(redacted)",
147147
"index": 2,
148148
},
149149
},

packages/polkadot/src/__snapshots__/polkadot.multisig.proxy.e2e.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ exports[`Polkadot Multisig with Proxy > success tests > 2-of-3 multisig with pur
110110
"multisig": "(redacted)",
111111
"result": "Ok",
112112
"timepoint": {
113-
"height": "(rounded 29000000)",
113+
"height": "(redacted)",
114114
"index": 2,
115115
},
116116
},
@@ -143,7 +143,7 @@ exports[`Polkadot Multisig with Proxy > success tests > 2-of-3 multisig with pur
143143
"multisig": "(redacted)",
144144
"result": "Ok",
145145
"timepoint": {
146-
"height": "(rounded 29000000)",
146+
"height": "(redacted)",
147147
"index": 2,
148148
},
149149
},

packages/shared/src/multisig.proxy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ async function multisigWithPureProxyTest<
242242
await checkEvents(finalApprovalEvents, 'multisig')
243243
.redact({
244244
// The approving address is the proxy, which is not deterministic.
245-
redactKeys: /approving|multisig/,
245+
redactKeys: /approving|multisig|height/,
246246
})
247247
.toMatchSnapshot("events when Bob's proxy approves the multisig call")
248248

0 commit comments

Comments
 (0)