From 8c9beb4ac416a9a3cc104233ccc1e911a7cdfdfc Mon Sep 17 00:00:00 2001 From: Elmar Kenigs Date: Tue, 10 Sep 2024 11:20:30 +0300 Subject: [PATCH] PR review changes --- .vscode/settings.json | 2 +- .../src/mrl/wormhole/contract/TokenBridge/TokenBridge.ts | 4 ++-- .../contract/TokenBridgeRelayer/TokenBridgeRelayer.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index da613d9a..4ead7dfe 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -48,10 +48,10 @@ "neuroweb", "nodl", "nodle", - "parallelizable", "onfinality", "parachain", "parachains", + "parallelizable", "peaq", "pendulumchain", "phala", diff --git a/packages/builder/src/mrl/wormhole/contract/TokenBridge/TokenBridge.ts b/packages/builder/src/mrl/wormhole/contract/TokenBridge/TokenBridge.ts index 7ff37bd6..190854bb 100644 --- a/packages/builder/src/mrl/wormhole/contract/TokenBridge/TokenBridge.ts +++ b/packages/builder/src/mrl/wormhole/contract/TokenBridge/TokenBridge.ts @@ -6,9 +6,9 @@ import { MrlConfigBuilder } from '../../../MrlBuilder.interfaces'; import { wormholeFactory } from '../../wormhole'; import { TOKEN_BRIDGE_ABI } from './TokenBridgeAbi'; -export function TokenBridge() { - const module = 'TokenBridge'; +const module = 'TokenBridge'; +export function TokenBridge() { return { transferTokens: (): MrlConfigBuilder => ({ build: ({ asset, destination, destinationAddress, moonChain }) => { diff --git a/packages/builder/src/mrl/wormhole/contract/TokenBridgeRelayer/TokenBridgeRelayer.ts b/packages/builder/src/mrl/wormhole/contract/TokenBridgeRelayer/TokenBridgeRelayer.ts index 90b45bc4..5a4f38f3 100644 --- a/packages/builder/src/mrl/wormhole/contract/TokenBridgeRelayer/TokenBridgeRelayer.ts +++ b/packages/builder/src/mrl/wormhole/contract/TokenBridgeRelayer/TokenBridgeRelayer.ts @@ -6,9 +6,9 @@ import { MrlConfigBuilder } from '../../../MrlBuilder.interfaces'; import { wormholeFactory } from '../../wormhole'; import { TOKEN_BRIDGE_RELAYER_ABI } from './TokenBridgeRelayerAbi'; -export function TokenBridgeRelayer() { - const module = 'TokenBridgeRelayer'; +const module = 'TokenBridgeRelayer'; +export function TokenBridgeRelayer() { return { transferTokensWithRelay: (): MrlConfigBuilder => ({ build: ({ asset, destination, destinationAddress, moonChain }) => {