Skip to content

Commit

Permalink
p22 update
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-soshte committed Nov 20, 2024
1 parent 358114a commit c45b9e1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stellar-baselib"
version = "0.4.0"
version = "0.4.1"
edition = "2021"
description = "A low level Rust library that offers a comprehensive set of functions for reading, writing, hashing, and signing primitive XDR constructs utilized in the Stellar network"
license = "Apache-2.0"
Expand All @@ -21,8 +21,8 @@ num-bigint = "0.4.3"
rand_core = {version = "0.6.4", default-features = true, features = ["getrandom"]}
getrandom = { version = "0.2.10", features = ["js"] }
sha2 = "0.10.7"
stellar-strkey = "0.0.8"
stellar-xdr = { version = "20.1.0", default-features = true, features = ["base64", "std", "next", "serde", "alloc"] }
stellar-strkey = "0.0.9"
stellar-xdr = { version = "22.0.0", default-features = true, features = ["base64", "std", "next", "serde", "alloc"] }
hex-literal = "0.4.1"
num-traits = "0.2.15"
hyper = "0.14.27"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Add this to your Cargo.toml:

```toml
[dependencies]
stellar-baselib = "0.4.0"
stellar-baselib = "0.4.1"
```

And this to your code:
Expand Down
8 changes: 4 additions & 4 deletions src/soroban_data_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ impl SorobanDataBuilderBehavior for SorobanDataBuilder {
if encoded_data.is_empty() {
// Return default empty data for empty string
stellar_xdr::next::SorobanTransactionData {
ext: stellar_xdr::next::ExtensionPoint::V0,
ext: stellar_xdr::next::SorobanTransactionDataExt::V0,
resources: stellar_xdr::next::SorobanResources {
footprint: LedgerFootprint {
read_only: Vec::new().try_into().unwrap(),
Expand All @@ -71,7 +71,7 @@ impl SorobanDataBuilderBehavior for SorobanDataBuilder {
.unwrap(),
)),
None => stellar_xdr::next::SorobanTransactionData {
ext: stellar_xdr::next::ExtensionPoint::V0,
ext: stellar_xdr::next::SorobanTransactionDataExt::V0,
resources: stellar_xdr::next::SorobanResources {
footprint: LedgerFootprint {
read_only: Vec::new().try_into().unwrap(),
Expand Down Expand Up @@ -193,7 +193,7 @@ mod tests {
fn test_constructs_from_xdr_base64_and_nothing() {
// Create sentinel data that matches the JS test
let sentinel = SorobanTransactionData {
ext: ExtensionPoint::V0,
ext: stellar_xdr::next::SorobanTransactionDataExt::V0,
resources: SorobanResources {
footprint: LedgerFootprint {
read_only: Vec::new().try_into().unwrap(),
Expand Down Expand Up @@ -235,7 +235,7 @@ mod tests {
fn test_sets_properties_as_expected() {
// Create sentinel data
let sentinel = SorobanTransactionData {
ext: ExtensionPoint::V0,
ext: stellar_xdr::next::SorobanTransactionDataExt::V0,
resources: SorobanResources {
footprint: LedgerFootprint {
read_only: Vec::new().try_into().unwrap(),
Expand Down

0 comments on commit c45b9e1

Please sign in to comment.