revert eth6 changes

pull/5324/head
bunsenstraat 4 weeks ago
parent e7213b127d
commit f5a8ac68c7
  1. 2
      libs/ghaction-helper/src/methods.ts
  2. 5
      libs/remix-simulator/src/methods/accounts.ts
  3. 10
      libs/remix-simulator/src/methods/transactions.ts

@ -14,7 +14,7 @@ const providerConfig = {
const config = { defaultTransactionType: '0x0' }
global.remixProvider = new Provider(providerConfig)
global.remixProvider.init()
global.web3Provider = new ethers.BrowserProvider(global.remixProvider)
global.web3Provider = new ethers.providers.Web3Provider(global.remixProvider)
global.provider = global.web3Provider
global.ethereum = global.web3Provider
global.web3 = new Web3(global.web3Provider)

@ -76,7 +76,6 @@ export class Web3Accounts {
methods (): Record<string, unknown> {
return {
eth_requestAccounts: this.eth_requestAccounts.bind(this),
eth_accounts: this.eth_accounts.bind(this),
eth_getBalance: this.eth_getBalance.bind(this),
eth_sign: this.eth_sign.bind(this),
@ -86,10 +85,6 @@ export class Web3Accounts {
}
}
eth_requestAccounts (_payload, cb) {
return cb(null, Object.keys(this.accounts))
}
eth_accounts (_payload, cb) {
return cb(null, Object.keys(this.accounts))
}

@ -308,6 +308,7 @@ export class Transactions {
const txBlock = this.vmContext.blockByTxHash[receipt.transactionHash]
const tx = this.vmContext.txByHash[receipt.transactionHash]
// TODO: params to add later
const r: Record<string, unknown> = {
blockHash: bytesToHex(txBlock.hash()),
@ -321,10 +322,11 @@ export class Transactions {
input: receipt.input,
nonce: bigIntToHex(tx.nonce),
transactionIndex: this.TX_INDEX,
value: bigIntToHex(tx.value),
v: bigIntToHex(tx.v),
r: bigIntToHex(tx.r),
s: bigIntToHex(tx.s)
value: bigIntToHex(tx.value)
// "value":"0xf3dbb76162000" // 4290000000000000
// "v": "0x25", // 37
// "r": "0x1b5e176d927f8e9ab405058b2d2457392da3e20f328b16ddabcebc33eaac5fea",
// "s": "0x4ba69724e8f69de52f0125ad8b3c5c2cef33019bac3249e2c0a2192766d1721c"
}
if (receipt.to) {

Loading…
Cancel
Save