Skip to content

Commit

Permalink
fix: update the ssz-rs to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
XuNeal committed Apr 23, 2023
1 parent adc73bd commit 1740c41
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
17 changes: 9 additions & 8 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 token-core/tcx-eth2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ prost-types = "0.11.2"
failure = "0.1.8"
regex = "1.7.0"
keccak-hash = "0.10.0"
ssz-rs = { git = "https://github.com/ChorusOne/ssz-rs.git", rev = "cb08f18ca919cc1b685b861d0fa9e2daabe89737" }
ssz-rs-derive = { git = "https://github.com/ChorusOne/ssz-rs.git", rev = "cb08f18ca919cc1b685b861d0fa9e2daabe89737" }
ssz_rs = "0.8.0"
ssz_rs_derive = "0.8.0"
4 changes: 2 additions & 2 deletions token-core/tcx-eth2/src/bls_to_execution_change.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ impl BLSToExecutionRequest {
&validator_root,
)?;
let signing_root = compute_signing_root(message.clone(), domain)?;
let message = signing_root.as_bytes();
Ok(hex::encode(message))
let message = format!("{:x}", signing_root);
Ok(message)
}
}

Expand Down

0 comments on commit 1740c41

Please sign in to comment.