@@ -19,26 +19,26 @@ export const web3 = needBuilder(() => {
21export const contracts = needBuilder(() => {
21export const contracts = needBuilder(() => {
22− throw new Error(BRIDGE_ERROR.MISSING_CONTRACTS.message);
22+ throw new Error(BRIDGE_ERROR.MISSING_CONTRACTS);
25export const wallet = needBuilder(() => {
25export const wallet = needBuilder(() => {
26− throw new Error(BRIDGE_ERROR.MISSING_WALLET.message);
26+ throw new Error(BRIDGE_ERROR.MISSING_WALLET);
29export const addressFromWallet = obj => wallet(obj).address;
29export const addressFromWallet = obj => wallet(obj).address;
31export const point = needBuilder(() => {
31export const point = needBuilder(() => {
32− throw new Error(BRIDGE_ERROR.MISSING_POINT.message);
32+ throw new Error(BRIDGE_ERROR.MISSING_POINT);
35export const pointCache = needBuilder(() => {
35export const pointCache = needBuilder(() => {
36− throw new Error(BRIDGE_ERROR.MISSING_POINT.message);
36+ throw new Error(BRIDGE_ERROR.MISSING_POINT);
39export const fromPointCache = (cache, point) => {
39export const fromPointCache = (cache, point) => {
40 if (!(point in cache)) {
40 if (!(point in cache)) {
41− throw new Error(BRIDGE_ERROR.MISSING_POINT.message);
41+ throw new Error(BRIDGE_ERROR.MISSING_POINT);
44 return cache[point];
44 return cache[point];
@@ -49,7 +49,7 @@ export const keystore = obj => {
49 return ks.value.matchWith({
49 return ks.value.matchWith({
50 Ok: result => result.value,
50 Ok: result => result.value,
51 Error: _ => {
51 Error: _ => {
52− throw BRIDGE_ERROR.MISSING_KEYSTORE;
52+ throw new Error(BRIDGE_ERROR.MISSING_KEYSTORE);