function getChainContext(storage, chainId, field) {
    if (storage[GET_CHAIN_CONTEXT_METHOD]) {
        return storage[GET_CHAIN_CONTEXT_METHOD](chainId, field);
    }
    if (storage[chainId]) {
        return storage[chainId][field];
    }
}
function getChainContext(storage, chainId, field) {
    if (storage[GET_CHAIN_CONTEXT_METHOD]) {
        return storage[GET_CHAIN_CONTEXT_METHOD](chainId, field);
    }
    if (storage[chainId]) {
        return storage[chainId][field];
    }
}
function getChainContext ( storage , chainId , field ) { if ( storage [ GET_CHAIN_CONTEXT_METHOD ] ) { return storage [ GET_CHAIN_CONTEXT_METHOD ] ( chainId , field ) ; } if ( storage [ chainId ] ) { return storage [ chainId ] [ field ] ; } }
Gets the chain context value from storage
@param storage
@param chainId
@param field
@returns {*}
Gets the chain context value from storage