pull/5188/head
yann300 2 months ago
parent 0a2bad63fc
commit ca9f9b0142
  1. 8
      apps/remix-ide-e2e/src/tests/terminal.test.ts
  2. 2
      libs/remix-ws-templates/src/script-templates/contract-deployer/basic-contract-deploy.ts
  3. 2
      libs/remix-ws-templates/src/script-templates/contract-deployer/create2-factory-deploy.ts
  4. 2
      libs/remix-ws-templates/src/templates/gnosisSafeMultisig/scripts/ethers-lib.ts
  5. 2
      libs/remix-ws-templates/src/templates/ozerc1155/scripts/ethers-lib.ts
  6. 2
      libs/remix-ws-templates/src/templates/ozerc20/scripts/ethers-lib.ts
  7. 2
      libs/remix-ws-templates/src/templates/ozerc721/scripts/ethers-lib.ts
  8. 2
      libs/remix-ws-templates/src/templates/playground/scripts/ethers-lib.ts
  9. 2
      libs/remix-ws-templates/src/templates/remixDefault/scripts/ethers-lib.ts
  10. 2
      libs/remix-ws-templates/src/templates/zeroxErc20/scripts/ethers-lib.ts

@ -501,7 +501,7 @@ const deployWithEthersJs = `
const metadata = JSON.parse(await remix.call('fileManager', 'getFile', artifactsPath))
// 'web3Provider' is a remix global variable object
const signer = (new ethers.BrowserProvider(web3Provider)).getSigner()
const signer = await (new ethers.BrowserProvider(web3Provider)).getSigner()
let factory = new ethers.ContractFactory(metadata.abi, metadata.data.bytecode.object, signer)
@ -531,7 +531,7 @@ describe("Storage with lib", function () {
it("test initial value", async function () {
// Make sure contract is compiled and artifacts are generated
const metadata = JSON.parse(await remix.call('fileManager', 'getFile', 'contracts/artifacts/Storage.json'))
const signer = (new ethers.BrowserProvider(web3Provider)).getSigner()
const signer = await (new ethers.BrowserProvider(web3Provider)).getSigner()
let Storage = new ethers.ContractFactory(metadata.abi, metadata.data.bytecode.object, signer)
let storage = await Storage.deploy();
console.log('storage contract Address: ' + storage.address);
@ -541,7 +541,7 @@ describe("Storage with lib", function () {
it("test updating and retrieving updated value", async function () {
const metadata = JSON.parse(await remix.call('fileManager', 'getFile', 'contracts/artifacts/Storage.json'))
const signer = (new ethers.BrowserProvider(web3Provider)).getSigner()
const signer = await (new ethers.BrowserProvider(web3Provider)).getSigner()
let Storage = new ethers.ContractFactory(metadata.abi, metadata.data.bytecode.object, signer)
let storage = await Storage.deploy();
await storage.waitForDeployment()
@ -552,7 +552,7 @@ describe("Storage with lib", function () {
it("fail test updating and retrieving updated value", async function () {
const metadata = JSON.parse(await remix.call('fileManager', 'getFile', 'contracts/artifacts/Storage.json'))
const signer = (new ethers.BrowserProvider(web3Provider)).getSigner()
const signer = await (new ethers.BrowserProvider(web3Provider)).getSigner()
let Storage = new ethers.ContractFactory(metadata.abi, metadata.data.bytecode.object, signer)
let storage = await Storage.deploy();
await storage.waitForDeployment()

@ -17,7 +17,7 @@ export const deploy = async (contractName: string, args: Array<any>, accountInde
const metadata = JSON.parse(await remix.call('fileManager', 'getFile', artifactsPath))
// 'web3Provider' is a remix global variable object
const signer = (new ethers.BrowserProvider(web3Provider)).getSigner(accountIndex)
const signer = await (new ethers.BrowserProvider(web3Provider)).getSigner(accountIndex)
const factory = new ethers.ContractFactory(metadata.abi, metadata.data.bytecode.object, signer)

@ -15,7 +15,7 @@ export const CREATE2_DEPLOYER_ADDRESS = '0x13b0D85CcB8bf860b6b79AF3029fCA081AE9b
export const deploy = async (contractName: string, args: Array<any>, salt: string, accountIndex?: number): Promise<string> => {
console.log(`deploying ${contractName}`)
const signer = new ethers.BrowserProvider(web3Provider).getSigner(accountIndex)
const signer = await (new ethers.BrowserProvider(web3Provider)).getSigner(accountIndex)
const factory = new ethers.Contract(CREATE2_DEPLOYER_ADDRESS, contractDeployerAbi, signer)
//@ts-ignore

@ -17,7 +17,7 @@ export const deploy = async (contractName: string, args: Array<any>, accountInde
const metadata = JSON.parse(await remix.call('fileManager', 'getFile', artifactsPath))
// 'web3Provider' is a remix global variable object
const signer = (new ethers.BrowserProvider(web3Provider)).getSigner(accountIndex)
const signer = await (new ethers.BrowserProvider(web3Provider)).getSigner(accountIndex)
const factory = new ethers.ContractFactory(metadata.abi, metadata.data.bytecode.object, signer)

@ -17,7 +17,7 @@ export const deploy = async (contractName: string, args: Array<any>, accountInde
const metadata = JSON.parse(await remix.call('fileManager', 'getFile', artifactsPath))
// 'web3Provider' is a remix global variable object
const signer = (new ethers.BrowserProvider(web3Provider)).getSigner(accountIndex)
const signer = await (new ethers.BrowserProvider(web3Provider)).getSigner(accountIndex)
const factory = new ethers.ContractFactory(metadata.abi, metadata.data.bytecode.object, signer)

@ -17,7 +17,7 @@ export const deploy = async (contractName: string, args: Array<any>, accountInde
const metadata = JSON.parse(await remix.call('fileManager', 'getFile', artifactsPath))
// 'web3Provider' is a remix global variable object
const signer = (new ethers.BrowserProvider(web3Provider)).getSigner(accountIndex)
const signer = await (new ethers.BrowserProvider(web3Provider)).getSigner(accountIndex)
const factory = new ethers.ContractFactory(metadata.abi, metadata.data.bytecode.object, signer)

@ -17,7 +17,7 @@ export const deploy = async (contractName: string, args: Array<any>, accountInde
const metadata = JSON.parse(await remix.call('fileManager', 'getFile', artifactsPath))
// 'web3Provider' is a remix global variable object
const signer = (new ethers.BrowserProvider(web3Provider)).getSigner(accountIndex)
const signer = await (new ethers.BrowserProvider(web3Provider)).getSigner(accountIndex)
const factory = new ethers.ContractFactory(metadata.abi, metadata.data.bytecode.object, signer)

@ -17,7 +17,7 @@ export const deploy = async (contractName: string, args: Array<any>, accountInde
const metadata = JSON.parse(await remix.call('fileManager', 'getFile', artifactsPath))
// 'web3Provider' is a remix global variable object
const signer = (new ethers.BrowserProvider(web3Provider)).getSigner(accountIndex)
const signer = await (new ethers.BrowserProvider(web3Provider)).getSigner(accountIndex)
const factory = new ethers.ContractFactory(metadata.abi, metadata.data.bytecode.object, signer)

@ -17,7 +17,7 @@ export const deploy = async (contractName: string, args: Array<any>, accountInde
const metadata = JSON.parse(await remix.call('fileManager', 'getFile', artifactsPath))
// 'web3Provider' is a remix global variable object
const signer = (new ethers.BrowserProvider(web3Provider)).getSigner(accountIndex)
const signer = await (new ethers.BrowserProvider(web3Provider)).getSigner(accountIndex)
const factory = new ethers.ContractFactory(metadata.abi, metadata.data.bytecode.object, signer)

@ -17,7 +17,7 @@ export const deploy = async (contractName: string, args: Array<any>, accountInde
const metadata = JSON.parse(await remix.call('fileManager', 'getFile', artifactsPath))
// 'web3Provider' is a remix global variable object
const signer = (new ethers.BrowserProvider(web3Provider)).getSigner(accountIndex)
const signer = await (new ethers.BrowserProvider(web3Provider)).getSigner(accountIndex)
const factory = new ethers.ContractFactory(metadata.abi, metadata.data.bytecode.object, signer)

Loading…
Cancel
Save