Add ARBITRARY_MESSAGE bridge mode

This commit is contained in:
Gerardo Nardelli 2019-07-17 11:49:29 -03:00
parent 70d03c1a93
commit 478b30b2ed
2 changed files with 3 additions and 2 deletions

@ -2,7 +2,8 @@ const BRIDGE_MODES = {
NATIVE_TO_ERC: 'NATIVE_TO_ERC',
ERC_TO_ERC: 'ERC_TO_ERC',
ERC_TO_NATIVE: 'ERC_TO_NATIVE',
NATIVE_TO_ERC_V1: 'NATIVE_TO_ERC_V1'
NATIVE_TO_ERC_V1: 'NATIVE_TO_ERC_V1',
ARBITRARY_MESSAGE: 'ARBITRARY_MESSAGE'
}
const ERC_TYPES = {

@ -37,7 +37,7 @@ switch (process.env.BRIDGE_MODE) {
foreignAbi = FOREIGN_ERC_TO_NATIVE_ABI
id = 'erc-native'
break
case 'ARBITRARY_MESSAGE':
case BRIDGE_MODES.ARBITRARY_MESSAGE:
homeAbi = HOME_AMB_ABI
foreignAbi = FOREIGN_AMB_ABI
id = 'amb'