Conversation
|
this PR will trigger conflicts with #305, please take a look on it |
409647b to
e4981d7
Compare
e4981d7 to
d31d3ce
Compare
e7a7293 to
dacd98d
Compare
dacd98d to
d93ffc4
Compare
fcfec7d to
f5d3a1e
Compare
bf7f32a to
2cdae79
Compare
2cdae79 to
b617802
Compare
| impl AxonChain { | ||
| fn contract(&self) -> Result<Contract, Error> { | ||
| let key_entry = self | ||
| .keybase | ||
| .get_key(&self.config.key_name) | ||
| .map_err(Error::key_base)?; | ||
| let wallet = key_entry.into_ether_wallet().with_chain_id(self.chain_id); | ||
| let client = Arc::new(SignerMiddleware::new(self.client.clone(), wallet)); | ||
| let contract = Contract::new(self.config.contract_address, Arc::clone(&client)); | ||
| Ok(contract) | ||
| } |
There was a problem hiding this comment.
why have to move generation of solidity contract instance out of bootstrap?
There was a problem hiding this comment.
The IBC test-framework add keys after the node bootstrap. So if we initial the solidity contract in bootstrap, it will raise an error since the key hasn't been added.
| ChainType::Ckb => { | ||
| // CKB only allow h256 as portId | ||
| let mut buf = [0u8; 32]; | ||
| buf[..8].copy_from_slice(b"transfer"); | ||
| PortId::from_str(H256::from(buf).to_string().as_str()).unwrap() |
There was a problem hiding this comment.
in real packet test case of ckb, port_id should always be the lock_hash of business owners, but leaves this away until merging the next PR can fix it automatically
| prefix.to_string() | ||
| }; | ||
| let private_key = { | ||
| let data = hex::decode("37aa0f893d05914a4def0460c0a984d3611546cfb26924d7a7ca6e0db9950a2d") |
There was a problem hiding this comment.
why choose this private key?
There was a problem hiding this comment.
It is copied from the old test, if we change the key the deploy transaction becames invalid.
ckb4ibc-testtoibc-test, make IBC tests ignorance the underlayer chains.ibc-testKnown issues: