code: function getChainDataById(storage, chainId) {
      if (storage[GET_CHAIN_METHOD]) {
          return storage[GET_CHAIN_METHOD](chainId);
      }
      return storage[chainId];
  }
docs: Gets the chain data from storage by chain id
  @param storage
  @param chainId