Skip to content

Commit

Permalink
bump borsh (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
plafer authored Jan 24, 2023
1 parent 7f9e658 commit d71a1d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ flex-error = { version = "0.4.4", default-features = false }
parity-scale-codec = { version = "3.0.0", default-features = false, features = ["full"], optional = true }
scale-info = { version = "2.1.2", default-features = false, features = ["derive"], optional = true }
## for borsh encode or decode
borsh = {version = "0.9.3", default-features = false, optional = true }
borsh = {version = "0.10.0", default-features = false, optional = true }

[dependencies.tendermint-proto]
version = "0.28"
Expand Down
5 changes: 3 additions & 2 deletions src/google.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ pub mod protobuf {

use alloc::string::String;
use alloc::vec::Vec;
use borsh::maybestd::io::Read;

#[cfg_attr(
feature = "parity-scale-codec",
Expand Down Expand Up @@ -271,8 +272,8 @@ pub mod protobuf {

#[cfg(feature = "borsh")]
impl borsh::BorshDeserialize for Any {
fn deserialize(buf: &mut &[u8]) -> borsh::maybestd::io::Result<Self> {
let inner_any = InnerAny::deserialize(buf)?;
fn deserialize_reader<R: Read>(reader: &mut R) -> borsh::maybestd::io::Result<Self> {
let inner_any = InnerAny::deserialize_reader(reader)?;

Ok(Any {
type_url: inner_any.type_url,
Expand Down

0 comments on commit d71a1d0

Please sign in to comment.