Skip to content

Commit beb74a9

Browse files
committed
feat: add vendor field
1 parent 876535f commit beb74a9

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "iop-python"
3-
version = "0.1.2"
3+
version = "0.1.3"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

src/lib.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,8 @@ pub fn generate_transaction<'a>(
254254
nonce: u64,
255255
password: String,
256256
account: i32,
257-
network: &'a str
257+
network: &'a str,
258+
vendor_field: Option<String>
258259
) -> PyResult<String> {
259260
let mut transactions = Vec::new();
260261
let signer = deserialize_hydra(data, password, account,network).unwrap();
@@ -264,7 +265,7 @@ pub fn generate_transaction<'a>(
264265
let optional = OptionalTransactionFields {
265266
amount,
266267
manual_fee: None,
267-
vendor_field: None,
268+
vendor_field,
268269
};
269270
let common_fields = CommonTransactionFields {
270271
network: &*network,

0 commit comments

Comments
 (0)