Iota chainId problem

The other day I visited https://soonaverse.com/, which added IOTA to my networks in metamask.
(https://docs.soonaverse.com/en/all-users-getting-started/installing-metamask/metamask-desktop/adding-the-iota-evm-network-desktop)

As it automatically added IOTA to metamask, which Chain ID is 1074 or *** 432*** in hex.

Now I have a problem when i run :

Moralis.chainId;

because it returns:

0x4

… which is the same as Rinkeby.

This is problematic because in my code I check the current network, and this bypasses my check.

Whats wrong here?

Make sure you’ve changed your chain to IOTA in your wallet when you go to run Moralis.chainId.

When IOTA is the current chain, 0x432 is returned as expected from Moralis.chainId.

1 Like