@@ -488,68 +488,68 @@ impl<'a> ToAscObj<AscEthereumBlock_0_0_6> for EthereumBlockData<'a> {
488488 }
489489}
490490
491- impl ToAscObj < AscEthereumTransaction_0_0_1 > for EthereumTransactionData {
491+ impl < ' a > ToAscObj < AscEthereumTransaction_0_0_1 > for EthereumTransactionData < ' a > {
492492 fn to_asc_obj < H : AscHeap + ?Sized > (
493493 & self ,
494494 heap : & mut H ,
495495 gas : & GasCounter ,
496496 ) -> Result < AscEthereumTransaction_0_0_1 , HostExportError > {
497497 Ok ( AscEthereumTransaction_0_0_1 {
498- hash : asc_new ( heap, & self . hash , gas) ?,
499- index : asc_new ( heap, & BigInt :: from_unsigned_u128 ( self . index ) , gas) ?,
500- from : asc_new ( heap, & self . from , gas) ?,
498+ hash : asc_new ( heap, self . hash ( ) , gas) ?,
499+ index : asc_new ( heap, & BigInt :: from_unsigned_u128 ( self . index ( ) ) , gas) ?,
500+ from : asc_new ( heap, self . from ( ) , gas) ?,
501501 to : self
502- . to
502+ . to ( )
503503 . map ( |to| asc_new ( heap, & to, gas) )
504504 . unwrap_or ( Ok ( AscPtr :: null ( ) ) ) ?,
505- value : asc_new ( heap, & BigInt :: from_unsigned_u256 ( & self . value ) , gas) ?,
506- gas_limit : asc_new ( heap, & BigInt :: from_unsigned_u256 ( & self . gas_limit ) , gas) ?,
507- gas_price : asc_new ( heap, & BigInt :: from_unsigned_u256 ( & self . gas_price ) , gas) ?,
505+ value : asc_new ( heap, & BigInt :: from_unsigned_u256 ( self . value ( ) ) , gas) ?,
506+ gas_limit : asc_new ( heap, & BigInt :: from_unsigned_u256 ( self . gas_limit ( ) ) , gas) ?,
507+ gas_price : asc_new ( heap, & BigInt :: from_unsigned_u256 ( self . gas_price ( ) ) , gas) ?,
508508 } )
509509 }
510510}
511511
512- impl ToAscObj < AscEthereumTransaction_0_0_2 > for EthereumTransactionData {
512+ impl < ' a > ToAscObj < AscEthereumTransaction_0_0_2 > for EthereumTransactionData < ' a > {
513513 fn to_asc_obj < H : AscHeap + ?Sized > (
514514 & self ,
515515 heap : & mut H ,
516516 gas : & GasCounter ,
517517 ) -> Result < AscEthereumTransaction_0_0_2 , HostExportError > {
518518 Ok ( AscEthereumTransaction_0_0_2 {
519- hash : asc_new ( heap, & self . hash , gas) ?,
520- index : asc_new ( heap, & BigInt :: from_unsigned_u128 ( self . index ) , gas) ?,
521- from : asc_new ( heap, & self . from , gas) ?,
519+ hash : asc_new ( heap, self . hash ( ) , gas) ?,
520+ index : asc_new ( heap, & BigInt :: from_unsigned_u128 ( self . index ( ) ) , gas) ?,
521+ from : asc_new ( heap, self . from ( ) , gas) ?,
522522 to : self
523- . to
523+ . to ( )
524524 . map ( |to| asc_new ( heap, & to, gas) )
525525 . unwrap_or ( Ok ( AscPtr :: null ( ) ) ) ?,
526- value : asc_new ( heap, & BigInt :: from_unsigned_u256 ( & self . value ) , gas) ?,
527- gas_limit : asc_new ( heap, & BigInt :: from_unsigned_u256 ( & self . gas_limit ) , gas) ?,
528- gas_price : asc_new ( heap, & BigInt :: from_unsigned_u256 ( & self . gas_price ) , gas) ?,
529- input : asc_new ( heap, & * self . input , gas) ?,
526+ value : asc_new ( heap, & BigInt :: from_unsigned_u256 ( self . value ( ) ) , gas) ?,
527+ gas_limit : asc_new ( heap, & BigInt :: from_unsigned_u256 ( self . gas_limit ( ) ) , gas) ?,
528+ gas_price : asc_new ( heap, & BigInt :: from_unsigned_u256 ( self . gas_price ( ) ) , gas) ?,
529+ input : asc_new ( heap, self . input ( ) , gas) ?,
530530 } )
531531 }
532532}
533533
534- impl ToAscObj < AscEthereumTransaction_0_0_6 > for EthereumTransactionData {
534+ impl < ' a > ToAscObj < AscEthereumTransaction_0_0_6 > for EthereumTransactionData < ' a > {
535535 fn to_asc_obj < H : AscHeap + ?Sized > (
536536 & self ,
537537 heap : & mut H ,
538538 gas : & GasCounter ,
539539 ) -> Result < AscEthereumTransaction_0_0_6 , HostExportError > {
540540 Ok ( AscEthereumTransaction_0_0_6 {
541- hash : asc_new ( heap, & self . hash , gas) ?,
542- index : asc_new ( heap, & BigInt :: from_unsigned_u128 ( self . index ) , gas) ?,
543- from : asc_new ( heap, & self . from , gas) ?,
541+ hash : asc_new ( heap, self . hash ( ) , gas) ?,
542+ index : asc_new ( heap, & BigInt :: from_unsigned_u128 ( self . index ( ) ) , gas) ?,
543+ from : asc_new ( heap, self . from ( ) , gas) ?,
544544 to : self
545- . to
545+ . to ( )
546546 . map ( |to| asc_new ( heap, & to, gas) )
547547 . unwrap_or ( Ok ( AscPtr :: null ( ) ) ) ?,
548- value : asc_new ( heap, & BigInt :: from_unsigned_u256 ( & self . value ) , gas) ?,
549- gas_limit : asc_new ( heap, & BigInt :: from_unsigned_u256 ( & self . gas_limit ) , gas) ?,
550- gas_price : asc_new ( heap, & BigInt :: from_unsigned_u256 ( & self . gas_price ) , gas) ?,
551- input : asc_new ( heap, & * self . input , gas) ?,
552- nonce : asc_new ( heap, & BigInt :: from_unsigned_u256 ( & self . nonce ) , gas) ?,
548+ value : asc_new ( heap, & BigInt :: from_unsigned_u256 ( self . value ( ) ) , gas) ?,
549+ gas_limit : asc_new ( heap, & BigInt :: from_unsigned_u256 ( self . gas_limit ( ) ) , gas) ?,
550+ gas_price : asc_new ( heap, & BigInt :: from_unsigned_u256 ( self . gas_price ( ) ) , gas) ?,
551+ input : asc_new ( heap, self . input ( ) , gas) ?,
552+ nonce : asc_new ( heap, & BigInt :: from_unsigned_u256 ( self . nonce ( ) ) , gas) ?,
553553 } )
554554 }
555555}
@@ -558,7 +558,7 @@ impl<'a, T, B> ToAscObj<AscEthereumEvent<T, B>> for EthereumEventData<'a>
558558where
559559 T : AscType + AscIndexId ,
560560 B : AscType + AscIndexId ,
561- EthereumTransactionData : ToAscObj < T > ,
561+ EthereumTransactionData < ' a > : ToAscObj < T > ,
562562 EthereumBlockData < ' a > : ToAscObj < B > ,
563563{
564564 fn to_asc_obj < H : AscHeap + ?Sized > (
@@ -591,7 +591,7 @@ impl<'a, T, B> ToAscObj<AscEthereumEvent_0_0_7<T, B>>
591591where
592592 T : AscType + AscIndexId ,
593593 B : AscType + AscIndexId ,
594- EthereumTransactionData : ToAscObj < T > ,
594+ EthereumTransactionData < ' a > : ToAscObj < T > ,
595595 EthereumBlockData < ' a > : ToAscObj < B > ,
596596{
597597 fn to_asc_obj < H : AscHeap + ?Sized > (
0 commit comments