Skip to content

Factory contract not working #972

Discussion options

You must be logged in to vote

Hi @bitcoinbrisbane , I was able to fork the contracts from the swayswap repo and successfully create a pool with the classic pool factory, so the issue is likely how you are deploying/interacting with the contract.

Here is the hardhat script I used:

import { ethers } from "hardhat";

// Address of the classic pool factory contract
const CONTRACT_ADDRESS = "0x9Cc1745e2a4E52c438AA2fbD9f0F68728B291dfF";
if (!CONTRACT_ADDRESS)
  throw "⛔️ Provide address of the contract to interact with!";

async function main() {
  const [signer] = await ethers.getSigners();

  const classicPoolFactoryArtifact = await ethers.getContractFactory(
    "SyncSwapClassicPoolFactory"
  );
  const classicPoolFactory =

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by sarahschwartz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployment Questions for deployment
3 participants