Skip to content

Commit 4ea909e

Browse files
committed
fix: reuse core abi static
1 parent 6affc58 commit 4ea909e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

adapter/src/ethereum.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,6 @@ mod test {
485485
let token_abi = include_bytes!("../test/resources/tokenabi.json");
486486
// adexbytecode.json
487487
let adex_bytecode = include_str!("../../lib/protocol-eth/resources/bytecode/AdExCore.json");
488-
// adexabi.json
489-
let adex_abi = include_bytes!("../../lib/protocol-eth/abi/AdExCore.json");
490488

491489
// deploy contracts
492490
let token_contract = Contract::deploy(web3.eth(), token_abi)
@@ -501,7 +499,7 @@ mod test {
501499
.wait()
502500
.expect("failed to wait");
503501

504-
let adex_contract = Contract::deploy(web3.eth(), adex_abi)
502+
let adex_contract = Contract::deploy(web3.eth(), &ADEXCORE_ABI)
505503
.expect("invalid adex contract")
506504
.confirmations(0)
507505
.options(Options::with(|opt| {

0 commit comments

Comments
 (0)