You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've done the correct installations and installed all dependencies mentioned in the documentation.
Ive also confirmed I have over 3 MANA on the poly network.
The text was updated successfully, but these errors were encountered:
Hey!
This has been fixed in the @next version, please use this code instead:
import*asl2from'@dcl/l2-scene-utils'import*asethConnectfrom'eth-connect'
...
const{ mana }=awaitl2.createComponents()constbalanceWei=awaitmana.balance('0xFE2d424AF0Df49Bb3316cB2E9f574b0D09cf98Ad')log(balanceWei)if(newethConnect.BigNumber(ethConnect.fromWei(balanceWei,'ether')).comparedTo(newethConnect.BigNumber(1))>=0){mana.transfer(`0xFE2d424AF0Df49Bb3316cB2E9f574b0D09cf98Ad`,newethConnect.BigNumber(ethConnect.toWei(1,'ether'))).then(()=>{player.pet3InventoryCount.increase(1)createPhoenix()player.writeDataToServer()},(error)=>{log('error',error)})}
This is the code I'm using, I've tried different wallet combinations, but I cant get the balance to return or make any transactions.
I've done the correct installations and installed all dependencies mentioned in the documentation.
Ive also confirmed I have over 3 MANA on the poly network.
The text was updated successfully, but these errors were encountered: