Error: Cannot execute Moralis.enableWeb3(), as Moralis Moralis.enableWeb3() already has been called, but is not finished yet

@qudusayo
Yeah, Fixed.
but, Return values from runContractFunction has no objects array with key: value?

Can you share me the details so I can check that out

You need to be sure it returns something.

Now, It returns array without key.
image

so, is there another way to get object array with key:value?

Array doesnโ€™t use key-value pair it uses index rather. Object uses key-value pair.
So you can look at the contract and be sure about what it returns. If itโ€™s to return an array, then you shouldnโ€™t expect an object.

Okay, Thanks for your help. :grinning:

A way around is to look at the array returned, they should all follow same structure, you can then modify it to your wished data type

1 Like