Complete the code to initialize a bridge connection to Ethereum network.
const bridge = new Bridge({ network: '[1]' });The bridge must connect to the Ethereum network, so 'Ethereum' is the correct choice.
Complete the code to lock tokens on the source chain before bridging.
await bridge.lockTokens('[1]', amount);
Tokens must be locked from the source address before bridging.
Fix the error in the code to correctly verify the bridge transaction hash.
const isValid = await bridge.verifyTransaction('[1]');
The verification function requires the transaction hash (txHash) to confirm the transaction.
Fill both blanks to create a mapping of token symbols to their bridge contract addresses.
const tokenBridgeMap = { '[1]': '[2]' };The token symbol 'USDT' maps to its bridge contract address '0x123abc456def7890'.
Fill all three blanks to filter tokens with balance greater than zero and map their symbols to balances.
const positiveBalances = { [1]: balances[[2]] for [3] in balances if balances[[3]] > 0 };We use 'token' as the variable name to iterate keys and check balances.