Skip to content

Commit e819d76

Browse files
author
Cem Eliguzel
committed
Cleanup
1 parent 128e6ac commit e819d76

File tree

3 files changed

+3
-25
lines changed

3 files changed

+3
-25
lines changed

node/cli/src/command.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ impl SubstrateCli for Cli {
136136
}
137137

138138
impl Cli {
139-
fn native_runtime_version(spec: &Box<dyn sc_service::ChainSpec>) -> &'static RuntimeVersion {
139+
fn runtime_version(spec: &Box<dyn sc_service::ChainSpec>) -> &'static RuntimeVersion {
140140
match spec {
141141
#[cfg(feature = "moonriver-native")]
142142
spec if spec.is_moonriver() => return &moonbeam_service::moonriver_runtime::VERSION,
@@ -399,7 +399,7 @@ pub fn run() -> Result<()> {
399399
params.parachain_id.unwrap_or(1000).into(),
400400
&cli.run,
401401
)?;
402-
let state_version = Cli::native_runtime_version(&chain_spec).state_version();
402+
let state_version = Cli::runtime_version(&chain_spec).state_version();
403403

404404
let output_buf = match chain_spec {
405405
#[cfg(feature = "moonriver-native")]

test/suites/dev/test-precompile/test-precompile-proxy-leader-demo3.ts

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,22 @@ describeSuite({
1818
let leaderContractAddress: `0x${string}`;
1919

2020
beforeAll(async function () {
21-
console.log("beforeAll Proxy Leader Demo");
2221
leaderContractAddress = await setupPoolWithParticipants(context);
23-
console.log("beforeAll Proxy Leader Demo 2");
2422

2523
const rawTx = context.writeContract!({
2624
contractName: "ProxyLeaderDemo",
2725
contractAddress: leaderContractAddress,
2826
functionName: "startVoting",
2927
rawTxOnly: true,
3028
});
31-
console.log("beforeAll Proxy Leader Demo 3");
3229
const { result } = await context.createBlock(rawTx);
33-
console.log("beforeAll Proxy Leader Demo 4");
3430
expectEVMResult(result!.events, "Succeed");
35-
console.log("beforeAll Proxy Leader Demo 5");
3631
});
3732

3833
it({
3934
id: "T01",
4035
title: "should not be able to vote if non-participant",
4136
test: async function () {
42-
console.log("beforeAll Proxy Leader Demo T01 1");
4337
expect(
4438
await context.readContract!({
4539
contractAddress: leaderContractAddress,
@@ -48,7 +42,6 @@ describeSuite({
4842
args: [ALITH_ADDRESS],
4943
})
5044
).to.be.false;
51-
console.log("beforeAll Proxy Leader Demo T01 2");
5245

5346
const rawTx = context.writeContract!({
5447
contractName: "ProxyLeaderDemo",
@@ -58,19 +51,15 @@ describeSuite({
5851
rawTxOnly: true,
5952
gas: 1000000n,
6053
});
61-
console.log("beforeAll Proxy Leader Demo T01 3");
6254
const { result } = await context.createBlock(rawTx);
63-
console.log("beforeAll Proxy Leader Demo T01 4");
6455
expectEVMResult(result!.events, "Revert");
65-
console.log("beforeAll Proxy Leader Demo T01 5");
6656
},
6757
});
6858

6959
it({
7060
id: "T02",
7161
title: "should not be able to vote for non-participant",
7262
test: async function () {
73-
console.log("beforeAll Proxy Leader Demo T02 1");
7463
expect(
7564
await context.readContract!({
7665
contractAddress: leaderContractAddress,
@@ -79,7 +68,6 @@ describeSuite({
7968
args: [BALTATHAR_ADDRESS],
8069
})
8170
).to.be.true;
82-
console.log("beforeAll Proxy Leader Demo T02 2");
8371

8472
const rawTx = context.writeContract!({
8573
contractName: "ProxyLeaderDemo",
@@ -90,19 +78,15 @@ describeSuite({
9078
privateKey: BALTATHAR_PRIVATE_KEY,
9179
gas: 1000000n,
9280
});
93-
console.log("beforeAll Proxy Leader Demo T02 3");
9481
const { result } = await context.createBlock(rawTx);
95-
console.log("beforeAll Proxy Leader Demo T02 4");
9682
expectEVMResult(result!.events, "Revert");
97-
console.log("beforeAll Proxy Leader Demo T02 5");
9883
},
9984
});
10085

10186
it({
10287
id: "T03",
10388
title: "should be able to vote for participant when participant",
10489
test: async function () {
105-
console.log("beforeAll Proxy Leader Demo T03 1");
10690
expect(
10791
await context.readContract!({
10892
contractAddress: leaderContractAddress,
@@ -111,7 +95,6 @@ describeSuite({
11195
args: [BALTATHAR_ADDRESS],
11296
})
11397
).to.be.true;
114-
console.log("beforeAll Proxy Leader Demo T03 2");
11598

11699
const rawTx = context.writeContract!({
117100
contractName: "ProxyLeaderDemo",
@@ -122,12 +105,9 @@ describeSuite({
122105
privateKey: BALTATHAR_PRIVATE_KEY,
123106
gas: 1_000_000n,
124107
});
125-
console.log("beforeAll Proxy Leader Demo T03 3");
126108
const { result } = await context.createBlock(rawTx);
127-
console.log("beforeAll Proxy Leader Demo T03 4");
128109

129110
expectEVMResult(result!.events, "Succeed");
130-
console.log("beforeAll Proxy Leader Demo T03 5");
131111
expect(
132112
await context.readContract!({
133113
contractAddress: leaderContractAddress,
@@ -136,7 +116,6 @@ describeSuite({
136116
args: [BALTATHAR_ADDRESS],
137117
})
138118
).to.be.false;
139-
console.log("beforeAll Proxy Leader Demo T03 6");
140119
},
141120
});
142121
},

test/suites/dev/test-xcm-v3/test-mock-dmp-queue.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ describeSuite({
114114

115115
const signedBlock = await context.polkadotJs().rpc.chain.getBlock();
116116
const apiAt = await context.polkadotJs().at(signedBlock.block.header.hash);
117-
console.log("signedBlock", signedBlock.block.header.hash.toHex());
118117
const allRecords = await apiAt.query.system.events();
119118

120119
// lets grab at which point the dmp queue was exhausted
@@ -146,7 +145,7 @@ describeSuite({
146145
expect(pageIndex.beginUsed.toBigInt()).to.eq(0n);
147146
expect(pageIndex.endUsed.toBigInt()).to.eq(0n);
148147

149-
// NEW PART
148+
// Repeat the test with different parameters
150149
{
151150
const xcmMessage = new XcmFragment(config)
152151
.withdraw_asset()

0 commit comments

Comments
 (0)