MetaFam / chievemints

MetaGame’s achievements NFTs
https://chiev.es
0 stars 9 forks source link

Deploy Chievments on Optimism. #10

Closed Seroxdesign closed 7 months ago

Seroxdesign commented 8 months ago

Is your feature request related to a problem? Please describe.

One of our grant milestones is deploying the chiev contracts on Optimsim

Describe the solution you'd like

Simple deployment, and swap out the cheiv network/address to OP on Metagame.wtf

https://app.charmverse.io/op-grants/page-27013511701775395

Seroxdesign commented 7 months ago
 🛰  Deploying: Roles

 🍅 Deployed in TX: 0xff27bdb29ae2e27bc98118c9867d7aafd52a0c645ecd7e02b8fadeb2e4d4a59a to 0x368f7F0d3AcE24B4057A625A177CffA755bFB7bF

 📄 Roles, deployed to address 0x368f7F0d3AcE24B4057A625A177CffA755bFB7bF by 0xacE1D8B4fB0dEB5ef4F0371A1fd93469B8EE2c56 on chain #10 (saved to artifacts/optimism/Roles.address).

 ⛽ 0.000001836862497078 ETH

 🛰  Deploying: Bits

 🍅 Deployed in TX: 0x5fb0f2fd22ca6764ad8fa7df103275a2afe5eb9285e4a0877525d626a2ae9c04 to 0x974fA18a51706B940Eb6aE74f96CeAbC7a62432E

 📄 Bits, deployed to address 0x974fA18a51706B940Eb6aE74f96CeAbC7a62432E by 0xacE1D8B4fB0dEB5ef4F0371A1fd93469B8EE2c56 on chain #10 (saved to artifacts/optimism/Bits.address).

 ⛽ 0.000002223995362434 ETH

 📡 Deploying: BulkDisbursableNFTs…

 🛰  Deploying: BulkDisbursableNFTs

 🥂 artifacts/optimism/BulkDisbursableNFTs.address doesn't exist; creating a new proxy…

 🍅 Deployed in TX: 0x02f521b2b3f791a9684005e1b33d29fb477f570ee20109b92f4041dd11442cb2 to 0x29Cc8676462EE99De59f53F7d280E0d3B984e7E0

 📄 BulkDisbursableNFTs, deployed as a proxy at 0x29Cc8676462EE99De59f53F7d280E0d3B984e7E0 to the implementation at 0x977B566174dF5805c7ca51dC60aa12951e740a94 by 0xacE1D8B4fB0dEB5ef4F0371A1fd93469B8EE2c56 on chain #10 (saved to artifacts/optimism/BulkDisbursableNFTs.address).

 ⛽ 0.00000125729649897 ETH
 ⏱  Waiting 20 seconds for Etherscan

 🔍 Verifying 0x977B566174dF5805c7ca51dC60aa12951e740a94 on Etherscan…
dysbulic commented 7 months ago

I deployed the contract to Optimism at 0xb77b8eDB779Cda90dBF651F8109857C97193CF9F. When trying to load the UI, however, the code works in development, but fails in production (at op.chiev.es) with "Uncaught TypeError: Function has non-object prototype 'undefined' in instanceof check".

More debugging is needed…

dysbulic commented 7 months ago

Switching from Web3Modal to ConnectKit fixed the error & the Optimism site is deployed to op.chiev.es.