chore: update utxorpc-spec to 0.3.0 (#399)

This commit is contained in:
Santiago Carmuega 2024-02-11 14:38:26 -03:00 committed by GitHub
parent 4cebe1271e
commit 78414b6ce8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 4 deletions

View file

@ -11,8 +11,7 @@ readme = "README.md"
authors = ["Santiago Carmuega <santiago@carmuega.me>"]
[dependencies]
#utxorpc = { path = "../../../utxorpc/rust-sdk" }
utxorpc = { version = "1.0.0-alpha.1" }
utxorpc-spec = { version = "0.3.0" }
pallas-traverse = { version = "=0.22.0", path = "../pallas-traverse" }
pallas-primitives = { version = "=0.22.0", path = "../pallas-primitives" }
pallas-codec = { version = "=0.22.0", path = "../pallas-codec" }

View file

@ -6,7 +6,7 @@ use pallas_traverse as trv;
use trv::OriginalHash;
use utxorpc::proto::cardano::v1 as u5c;
use utxorpc_spec::utxorpc::v1alpha::cardano as u5c;
pub fn map_purpose(x: &alonzo::RedeemerTag) -> u5c::RedeemerPurpose {
match x {
@ -469,7 +469,7 @@ pub fn map_block(block: &trv::MultiEraBlock) -> u5c::Block {
header: u5c::BlockHeader {
slot: block.slot(),
hash: block.hash().to_vec().into(),
height: block.number()
height: block.number(),
}
.into(),
body: u5c::BlockBody {