Skip to content

Commit d3d6f89

Browse files
committed
fix build libs
1 parent 8e77a6a commit d3d6f89

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

libs/remix-lib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@
5757
"typings": "src/index.d.ts",
5858
"gitHead": "89e43672a629f3267cc1b9c1e6109798d5c91d20",
5959
"types": "./src/index.d.ts"
60-
}
60+
}

libs/remix-lib/src/hash.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export const ripemd160FromArray = function(a: number[], padded: boolean): Buffer
158158
* @param a The input data
159159
*/
160160
export const rlphash = function(a: Input): Buffer {
161-
return keccak(encode(a))
161+
return keccak(Buffer.from(encode(a)))
162162
}
163163

164164
/**

libs/remix-simulator/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@
7171
"typings": "src/index.d.ts",
7272
"gitHead": "89e43672a629f3267cc1b9c1e6109798d5c91d20",
7373
"types": "./src/index.d.ts"
74-
}
74+
}

libs/remix-simulator/src/methods/transactions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export class Transactions {
158158
this.vmContext.web3().flagNextAsDoNotRecordEvmSteps()
159159
processTx(this.txRunnerInstance, payload, true, (error, value: VMexecutionResult) => {
160160
if (error) return cb(error)
161-
const result: RunTxResult = value.result
161+
const result: any = value.result
162162
if (result.execResult && result.execResult.exceptionError && result.execResult.exceptionError.errorType === 'EvmError') {
163163
return cb(result.execResult.exceptionError.error)
164164
}

libs/remix-simulator/src/vm-context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class StateManagerCommonStorageDump extends DefaultStateManager {
7474
const value = decode(val.value)
7575
storage['0x' + val.key.toString('hex')] = {
7676
key: this.keyHashes[val.key.toString('hex')],
77-
value: '0x' + value.toString('hex')
77+
value: '0x' + value.toString()
7878
}
7979
})
8080
stream.on('end', () => {

0 commit comments

Comments
 (0)