git.delta.rocks / unique-network / refs/commits / 67a4ea452077

difftreelog

fix Tuple size calculation. Some PR fixes.

Trubnikov Sergey2022-08-29parent: #78a9952.patch.diff
in: master

4 files changed

modifiedCargo.lockdiffbeforeafterboth
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2169,7 +2169,7 @@
 
 [[package]]
 name = "evm-coder"
-version = "0.1.2"
+version = "0.1.3"
 dependencies = [
  "ethereum",
  "evm-coder-procedural",
@@ -5749,7 +5749,7 @@
 
 [[package]]
 name = "pallet-fungible"
-version = "0.1.4"
+version = "0.1.5"
 dependencies = [
  "ethereum",
  "evm-coder",
modifiedcrates/evm-coder/Cargo.tomldiffbeforeafterboth
--- a/crates/evm-coder/Cargo.toml
+++ b/crates/evm-coder/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "evm-coder"
-version = "0.1.2"
+version = "0.1.3"
 license = "GPLv3"
 edition = "2021"
 
modifiedcrates/evm-coder/src/abi.rsdiffbeforeafterboth
354 ABI_ALIGNMENT354 ABI_ALIGNMENT
355 }355 }
356 }356 }
357 impl AbiRead<$ty> for $ty {
358 fn abi_read(&mut self) -> Result<$ty> {
359 todo!("Refactor requered.")
360 }
361
362 fn size() -> usize {
363 ABI_ALIGNMENT
364 }
365 }
357 };366 };
358}367}
359368
412 where421 where
413 $(422 $(
414 Self: AbiRead<$ident>,423 Self: AbiRead<$ident>,
424 $ident: AbiRead<$ident>,
415 )+425 )+
416 ($($ident,)+): TypeHelper<($($ident,)+)>,426 ($($ident,)+): TypeHelper<($($ident,)+)>,
417 {427 {
424 }434 }
425435
426 fn size() -> usize {436 fn size() -> usize {
427 0 $(+ {let _ : $ident; ABI_ALIGNMENT})+437 0 $(+ <$ident>::size())+
428 }438 }
429 }439 }
430 #[allow(non_snake_case)]440 #[allow(non_snake_case)]
modifiedpallets/fungible/Cargo.tomldiffbeforeafterboth
--- a/pallets/fungible/Cargo.toml
+++ b/pallets/fungible/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "pallet-fungible"
-version = "0.1.4"
+version = "0.1.5"
 license = "GPLv3"
 edition = "2021"