Use the sanctions set passed in as arg to builder function (#193)
This commit is contained in:
parent
0759d6e165
commit
9e860ef262
1 changed files with 3 additions and 8 deletions
|
|
@ -8,8 +8,8 @@ use custom::{eth_dos_batch, eth_friend_batch};
|
||||||
use crate::{
|
use crate::{
|
||||||
backends::plonky2::mock::signedpod::MockSigner,
|
backends::plonky2::mock::signedpod::MockSigner,
|
||||||
frontend::{
|
frontend::{
|
||||||
containers::{Dictionary, Set},
|
containers::Dictionary, CustomPredicateRef, MainPodBuilder, SignedPod, SignedPodBuilder,
|
||||||
CustomPredicateRef, MainPodBuilder, SignedPod, SignedPodBuilder, Statement, Value,
|
Statement, Value,
|
||||||
},
|
},
|
||||||
middleware::{Params, PodType, KEY_SIGNER, KEY_TYPE},
|
middleware::{Params, PodType, KEY_SIGNER, KEY_TYPE},
|
||||||
op,
|
op,
|
||||||
|
|
@ -31,12 +31,7 @@ pub fn zu_kyc_sign_pod_builders(
|
||||||
pay_stub.insert("startDate", 1706367566);
|
pay_stub.insert("startDate", 1706367566);
|
||||||
|
|
||||||
let mut sanction_list = SignedPodBuilder::new(params);
|
let mut sanction_list = SignedPodBuilder::new(params);
|
||||||
let sanctions_values = ["A343434340"].map(Value::from);
|
sanction_list.insert("sanctionList", sanction_set.clone());
|
||||||
|
|
||||||
sanction_list.insert(
|
|
||||||
"sanctionList",
|
|
||||||
Value::Set(Set::new(sanctions_values.into()).unwrap()),
|
|
||||||
);
|
|
||||||
|
|
||||||
(gov_id, pay_stub, sanction_list)
|
(gov_id, pay_stub, sanction_list)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue