Skip to content

Commit f0d4332

Browse files
committed
remove uneeded & label & typo
1 parent d38c551 commit f0d4332

File tree

5 files changed

+15
-8
lines changed

5 files changed

+15
-8
lines changed

apps/remix-ide/src/app/providers/mainnet-vm-fork-provider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export class MainnetForkVMProvider extends BasicVMProvider {
1010
name: 'vm-mainnet-fork',
1111
displayName: 'Mainnet fork - Remix VM (Cancun)',
1212
kind: 'provider',
13-
description: 'Remix VM (London)',
13+
description: 'Remix VM (Cancun)',
1414
methods: ['sendAsync', 'init'],
1515
version: packageJson.version
1616
},

apps/remix-ide/src/blockchain/execution-context.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export class ExecutionContext {
114114

115115
removeProvider (name) {
116116
if (name && this.customNetWorks[name]) {
117-
if (this.executionContext === name) this.setContext('vm-shanghai', null, null, null)
117+
if (this.executionContext === name) this.setContext('vm-paris', null, null, null)
118118
delete this.customNetWorks[name]
119119
this.event.trigger('removeProvider', [name])
120120
}

apps/remix-ide/webpack.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,7 @@ module.exports = composePlugins(withNx(), withReact(), (config) => {
123123
new webpack.ProvidePlugin({
124124
Buffer: ['buffer', 'Buffer'],
125125
url: ['url', 'URL'],
126-
process: 'process/browser',
127-
'rustbn-wasm': 'rustbn-wasm'
126+
process: 'process/browser'
128127
})
129128
)
130129

libs/remix-lib/src/execution/forkAt.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,14 @@ const forks = {
6262
{
6363
number: 15537394,
6464
name: 'paris'
65+
},
66+
{
67+
number: 17034870,
68+
name: 'shanghai'
69+
},
70+
{
71+
number: 19426587,
72+
name: 'cancun'
6573
}
6674
],
6775
3: [

libs/remix-lib/src/helpers/txResultHelper.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ function convertToPrefixedHex (input) {
88
if (input === undefined || input === null || isHexString(input)) {
99
return input
1010
}
11-
if (typeof input === 'number') {
12-
return '0x' + input.toString(16)
13-
}
14-
if ((input.constructor && input.constructor.name === 'BigNumber') || BN.isBN(input) || isBigInt(input)) {
11+
if ((input.constructor && input.constructor.name === 'BigNumber')
12+
|| BN.isBN(input)
13+
|| isBigInt(input)
14+
|| typeof input === 'number') {
1515
return '0x' + input.toString(16)
1616
}
1717

0 commit comments

Comments
 (0)