movementlabsxyz / movement

The Movement Network is a Move-based L2 on Ethereum.
Apache License 2.0
71 stars 61 forks source link

Address looked up by bridge service differs from config address #715

Open l-monninger opened 4 days ago

l-monninger commented 4 days ago

Summary

Address looked up by bridge service differs from config address:

Oct 18 15:08:36 ip-10-0-16-212 docker[305029]: bridge-service  | 2024-10-18T15:08:36.203720Z  INFO bridge_service: Bridge config loaded: Config { eth: EthConfig { eth_rpc_connection_protocol: "https", eth_rpc_connection_hostname: "ethereum-holesky-rpc.publicnode.com", eth_rpc_connection_port: 443, eth_ws_connection_protocol: "ws", eth_ws_connection_hostname: "localhost", eth_ws_connection_port: 8545, eth_chain_id: 0, eth_initiator_contract: "0xb33d9fA868054FD3F8F02ba9Fc04B2a1862Ab855", eth_counterparty_contract: "0xA6bB0d5eA03f3bEe3510EA3Ec39e85Cd7395Bc37", eth_weth_contract: "0xB7f8BC63BbcaD18155201308C8f3540b07f84F5e", signer_private_key: "xx", time_lock_secs: 172800, gas_limit: 10000000000000000, transaction_send_retries: 10 }, movement: MovementConfig { movement_signer_address: <elided secret for Ed25519PrivateKey>, movement_native_address: "0x8c34444ca905ea353cd7d2127c55e0bdf95f9157aeffe47ce974e3e199e98b95", mvt_rpc_connection_protocol: "https", mvt_rpc_connection_hostname: "testnet.movementnetwork.xyz", mvt_rpc_connection_port: 443, mvt_faucet_connection_protocol: "http", mvt_faucet_connection_hostname: "127.0.0.1", mvt_faucet_connection_port: 8081, mvt_init_network: "local" }, testing: TestingConfig { eth_well_known_account_private_keys: [] } }
Oct 18 15:08:36 ip-10-0-16-212 docker[305029]: bridge-service  | 2024-10-18T15:08:36.239088Z  INFO bridge_service::chains::ethereum::event_monitoring: Start Eth monitoring with initiator:0xb33d9fA868054FD3F8F02ba9Fc04B2a1862Ab855 counterpart:0xA6bB0d5eA03f3bEe3510EA3Ec39e85Cd7395Bc37
Oct 18 15:08:36 ip-10-0-16-212 docker[305029]: bridge-service  | thread 'main' panicked at protocol-units/bridge/service/src/main.rs:36:73:
Oct 18 15:08:36 ip-10-0-16-212 docker[305029]: bridge-service  | called `Result::unwrap()` on an `Err` value: API error Error(AccountNotFound): Account not found by Address(0x8bfec96337199fa83517de649fd1612835ea7dbe4240723c555c3fb1aee52ff2) and Ledger version(77744)
musitdev commented 2 days ago

In the local process compose deployment, the native address is set using the Suzuka node config file, and the private address is defined using a random generator. How is the bridge config file defined during the instance deployment? The native key should be set using the Suzuka instance, and the private key is easier to define by hand until we use a sort of vault.