@@ -37,18 +37,6 @@ impl AscType for AscLogParamArray {
3737 }
3838}
3939
40- impl ToAscObj < AscLogParamArray > for Vec < ethabi:: LogParam > {
41- fn to_asc_obj < H : AscHeap + ?Sized > (
42- & self ,
43- heap : & mut H ,
44- gas : & GasCounter ,
45- ) -> Result < AscLogParamArray , HostExportError > {
46- let content: Result < Vec < _ > , _ > = self . iter ( ) . map ( |x| asc_new ( heap, x, gas) ) . collect ( ) ;
47- let content = content?;
48- Ok ( AscLogParamArray ( Array :: new ( & content, heap, gas) ?) )
49- }
50- }
51-
5240impl ToAscObj < AscLogParamArray > for & [ ethabi:: LogParam ] {
5341 fn to_asc_obj < H : AscHeap + ?Sized > (
5442 & self ,
@@ -737,7 +725,7 @@ impl<'a> ToAscObj<AscEthereumCall> for EthereumCallData<'a> {
737725 gas : & GasCounter ,
738726 ) -> Result < AscEthereumCall , HostExportError > {
739727 Ok ( AscEthereumCall {
740- address : asc_new ( heap, & self . to , gas) ?,
728+ address : asc_new ( heap, self . to ( ) , gas) ?,
741729 block : asc_new ( heap, & self . block , gas) ?,
742730 transaction : asc_new ( heap, & self . transaction , gas) ?,
743731 inputs : asc_new ( heap, & self . inputs , gas) ?,
@@ -758,8 +746,8 @@ impl<'a> ToAscObj<AscEthereumCall_0_0_3<AscEthereumTransaction_0_0_2, AscEthereu
758746 HostExportError ,
759747 > {
760748 Ok ( AscEthereumCall_0_0_3 {
761- to : asc_new ( heap, & self . to , gas) ?,
762- from : asc_new ( heap, & self . from , gas) ?,
749+ to : asc_new ( heap, self . to ( ) , gas) ?,
750+ from : asc_new ( heap, self . from ( ) , gas) ?,
763751 block : asc_new ( heap, & self . block , gas) ?,
764752 transaction : asc_new ( heap, & self . transaction , gas) ?,
765753 inputs : asc_new ( heap, & self . inputs , gas) ?,
@@ -780,8 +768,8 @@ impl<'a> ToAscObj<AscEthereumCall_0_0_3<AscEthereumTransaction_0_0_6, AscEthereu
780768 HostExportError ,
781769 > {
782770 Ok ( AscEthereumCall_0_0_3 {
783- to : asc_new ( heap, & self . to , gas) ?,
784- from : asc_new ( heap, & self . from , gas) ?,
771+ to : asc_new ( heap, self . to ( ) , gas) ?,
772+ from : asc_new ( heap, self . from ( ) , gas) ?,
785773 block : asc_new ( heap, & self . block , gas) ?,
786774 transaction : asc_new ( heap, & self . transaction , gas) ?,
787775 inputs : asc_new ( heap, & self . inputs , gas) ?,
0 commit comments