Skip to content
This repository has been archived by the owner on Oct 6, 2021. It is now read-only.

Commit

Permalink
Use forked borsh
Browse files Browse the repository at this point in the history
  • Loading branch information
nhynes committed Nov 13, 2019
1 parent 96c9c50 commit d7f5a58
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -23,4 +23,4 @@ opt-level = 3
[patch.crates-io]
oasis-std = { path = "oasis-std" }
oasis-test = { path = "oasis-test" }
borsh = { git = "https://github.com/nhynes/borsh" }
borsh = { git = "https://github.com/oasislabs/borsh" }
6 changes: 2 additions & 4 deletions oasis-std/src/client.rs
@@ -1,13 +1,11 @@
use oasis_types::Address;

pub trait Gateway {
type Error;

/// Deploys a new service with the provided initcode.
/// `initcode` is expected to be the Wasm bytecode concatenated with the the constructor stdin.
/// Upon success, returns the address of the new service.
fn deploy(&self, initcode: &[u8]) -> Result<Address, Self::Error>;
fn deploy(&self, initcode: &[u8]) -> Result<Address, Box<dyn std::error::Error>>;

/// Returns the output of calling the service at `address` with `data` as stdin.
fn rpc(&self, address: Address, data: &[u8]) -> Result<Vec<u8>, Self::Error>;
fn rpc(&self, address: Address, data: &[u8]) -> Result<Vec<u8>, Box<dyn std::error::Error>>;
}
2 changes: 1 addition & 1 deletion tests/Cargo.toml
Expand Up @@ -10,4 +10,4 @@ lto = true
opt-level = 3

[patch.crates-io]
borsh = { git = "https://github.com/nhynes/borsh" }
borsh = { git = "https://github.com/oasislabs/borsh" }

0 comments on commit d7f5a58

Please sign in to comment.