Skip to content

Commit c190a2d

Browse files
committed
fix: add ethereum local testnet startup script
1 parent 4bcb91d commit c190a2d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

adapter/src/ethereum.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,10 @@ impl Adapter for EthereumAdapter {
146146
));
147147
}
148148

149+
let contract_address = Address::from_slice(&self.config.ethereum_core_address);
150+
149151
let (_eloop, transport) = web3::transports::Http::new(&self.config.ethereum_network)
150-
.map_err(|_| map_error("failed to init core contract"))?;
152+
.map_err(|_| map_error("failed to init http transport"))?;
151153
let web3 = web3::Web3::new(transport);
152154

153155
let contract = Contract::from_json(web3.eth(), contract_address, &ADEXCORE_ABI)

0 commit comments

Comments
 (0)