1
0
Fork 0
mirror of synced 2025-09-23 12:18:44 +00:00

Merge branch 'patch-abi-struct-value' of github.com:Zokrates/ZoKrates into gm17-stdlib-verify

This commit is contained in:
schaeff 2021-07-25 15:55:38 +02:00
commit 0ff93802d2
2 changed files with 2 additions and 4 deletions

View file

@ -0,0 +1 @@
Fix abi encoder bug for struct values where the members are encoded in the wrong order

View file

@ -14,14 +14,11 @@ impl<T: From<usize>> Encode<T> for Inputs<T> {
}
}
use std::collections::BTreeMap;
use std::fmt;
use zokrates_core::typed_absy::types::{ConcreteType, UBitwidth};
use zokrates_field::Field;
type Map<K, V> = BTreeMap<K, V>;
#[derive(Debug, PartialEq)]
pub enum Error {
Json(String),
@ -48,7 +45,7 @@ pub enum Value<T> {
Field(T),
Boolean(bool),
Array(Vec<Value<T>>),
Struct(Map<String, Value<T>>),
Struct(Vec<(String, Value<T>)>),
}
#[derive(PartialEq, Debug)]