fix build libs

pull/4203/head
aniket-engg 1 year ago committed by Aniket
parent 8e77a6aa72
commit d3d6f8926d
  1. 2
      libs/remix-lib/package.json
  2. 2
      libs/remix-lib/src/hash.ts
  3. 2
      libs/remix-simulator/package.json
  4. 2
      libs/remix-simulator/src/methods/transactions.ts
  5. 2
      libs/remix-simulator/src/vm-context.ts

@ -57,4 +57,4 @@
"typings": "src/index.d.ts",
"gitHead": "89e43672a629f3267cc1b9c1e6109798d5c91d20",
"types": "./src/index.d.ts"
}
}

@ -158,7 +158,7 @@ export const ripemd160FromArray = function(a: number[], padded: boolean): Buffer
* @param a The input data
*/
export const rlphash = function(a: Input): Buffer {
return keccak(encode(a))
return keccak(Buffer.from(encode(a)))
}
/**

@ -71,4 +71,4 @@
"typings": "src/index.d.ts",
"gitHead": "89e43672a629f3267cc1b9c1e6109798d5c91d20",
"types": "./src/index.d.ts"
}
}

@ -158,7 +158,7 @@ export class Transactions {
this.vmContext.web3().flagNextAsDoNotRecordEvmSteps()
processTx(this.txRunnerInstance, payload, true, (error, value: VMexecutionResult) => {
if (error) return cb(error)
const result: RunTxResult = value.result
const result: any = value.result
if (result.execResult && result.execResult.exceptionError && result.execResult.exceptionError.errorType === 'EvmError') {
return cb(result.execResult.exceptionError.error)
}

@ -74,7 +74,7 @@ class StateManagerCommonStorageDump extends DefaultStateManager {
const value = decode(val.value)
storage['0x' + val.key.toString('hex')] = {
key: this.keyHashes[val.key.toString('hex')],
value: '0x' + value.toString('hex')
value: '0x' + value.toString()
}
})
stream.on('end', () => {

Loading…
Cancel
Save