Merge branch 'patch-abi-struct-value' of github.com:Zokrates/ZoKrates into gm17-stdlib-verify
This commit is contained in:
commit
0ff93802d2
2 changed files with 2 additions and 4 deletions
1
changelogs/unreleased/947-schaeff
Normal file
1
changelogs/unreleased/947-schaeff
Normal file
|
@ -0,0 +1 @@
|
|||
Fix abi encoder bug for struct values where the members are encoded in the wrong order
|
|
@ -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)]
|
||||
|
|
Loading…
Reference in a new issue