Skip to content

Commit

Permalink
bump astria dep to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
noot committed Jun 28, 2024
1 parent dc83296 commit 71d2884
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crates/relayer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ ibc-proto = { version = "0.41.0", features = ["serde"] }
ibc-telemetry = { version = "0.26.4", path = "../telemetry", optional = true }
ibc-relayer-types = { version = "0.26.4", path = "../relayer-types", features = ["mocks"] }

astria-core = { git = "https://github.com/astriaorg/astria", rev = "0f7faa802046c5314a423c20d037ebe8c4852189" }
astria-sequencer-client = { git = "https://github.com/astriaorg/astria", rev = "0f7faa802046c5314a423c20d037ebe8c4852189", features = [ "http" ] }
astria-core = { git = "https://github.com/astriaorg/astria", rev = "e73db6304c0146c9891a77fbc24b92d49f3eb211" }
astria-sequencer-client = { git = "https://github.com/astriaorg/astria", rev = "e73db6304c0146c9891a77fbc24b92d49f3eb211", features = [ "http" ] }
ed25519-consensus = "2.1.0"
ibc-types = "0.12.0"
jmt = "0.6"
Expand Down
8 changes: 5 additions & 3 deletions crates/relayer/src/chain/astria/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ impl AstriaEndpoint {

let signing_key: ed25519_consensus::SigningKey =
(*self.get_key()?.signing_key().as_bytes()).into(); // TODO cache this
let verification_key = VerificationKey::from(signing_key.verification_key());
let verification_key = VerificationKey::try_from(signing_key.verification_key().to_bytes())
.map_err(|e| Error::other(e.into()))?;
let address = Address::builder()
.verification_key(&verification_key)
.prefix("astria")
Expand All @@ -293,7 +294,7 @@ impl AstriaEndpoint {
actions,
};

let signed_tx = unsigned_tx.into_signed(&SigningKey::from(signing_key));
let signed_tx = unsigned_tx.into_signed(&SigningKey::from(signing_key.to_bytes()));
let tx_bytes = signed_tx.into_raw().encode_to_vec();

let resp = self
Expand Down Expand Up @@ -608,7 +609,8 @@ impl ChainEndpoint for AstriaEndpoint {

let signing_key: ed25519_consensus::SigningKey =
(*self.get_key()?.signing_key().as_bytes()).into(); // TODO cache this
let verification_key = VerificationKey::from(signing_key.verification_key());
let verification_key = VerificationKey::try_from(signing_key.verification_key().to_bytes())
.map_err(|e| Error::other(e.into()))?;
let address = Address::builder()
.verification_key(&verification_key)
.prefix("astria")
Expand Down

0 comments on commit 71d2884

Please sign in to comment.