I have a factory contract that does deploy other contract on the fly . The following piece of code works perfectly on ganache/ethereum but on BSC, it creates just an empty wallet.
/// here is the sample usage
// templateAddr is the source contract to clone
address payable lo = createClone(templateAddr);
MyContract(lo).initialize(); // initialize
Can somebody please point me to the right direction? Any idea why it isn’t working on BSC.
// this is the EIP
I am trying this piece of code on binance smart chain (TESTNET)
I tried the clones family from the OpenZeppelin contracts and still the same, on ETH minimal proxies are created but on BSC testnet it always create a wallet, I am really not sure why is it happening, if I would have some funds will try it on the BSC mainnet and let you know the results.