PrimeDAO / prime-launch-dapp

https://launch.prime.xyz
6 stars 13 forks source link

Resolve build issue when adding `CeloProvider` (cont of #761) #781

Open hiaux0 opened 1 year ago

hiaux0 commented 1 year ago

761

https://github.com/PrimeDAO/prime-launch-dapp/issues/761#issuecomment-1239558073

Copy paste:

Celo-Tools

https://www.npmjs.com/package/@celo-tools/celo-ethers-wrapper CeloProvider is a wrapper that enables Ethersjs to work with the Celo network. Specific for launch it might solve the getBlock workaround, since Celo is not supporting gasLimit. It is implemented to create the readOnlyProvider in EthereumService.

Quick test to implement Celo-Tools in prime-launch ended with an error:

this.readOnlyProvider = new CeloProvider(...);

image.png