@@ -489,7 +489,7 @@ impl ToAscObj<AscEthereumTransaction_0_0_1> for EthereumTransactionData {
489489 ) -> Result < AscEthereumTransaction_0_0_1 , HostExportError > {
490490 Ok ( AscEthereumTransaction_0_0_1 {
491491 hash : asc_new ( heap, & self . hash , gas) ?,
492- index : asc_new ( heap, & BigInt :: from ( self . index ) , gas) ?,
492+ index : asc_new ( heap, & BigInt :: from_unsigned_u128 ( self . index ) , gas) ?,
493493 from : asc_new ( heap, & self . from , gas) ?,
494494 to : self
495495 . to
@@ -510,7 +510,7 @@ impl ToAscObj<AscEthereumTransaction_0_0_2> for EthereumTransactionData {
510510 ) -> Result < AscEthereumTransaction_0_0_2 , HostExportError > {
511511 Ok ( AscEthereumTransaction_0_0_2 {
512512 hash : asc_new ( heap, & self . hash , gas) ?,
513- index : asc_new ( heap, & BigInt :: from ( self . index ) , gas) ?,
513+ index : asc_new ( heap, & BigInt :: from_unsigned_u128 ( self . index ) , gas) ?,
514514 from : asc_new ( heap, & self . from , gas) ?,
515515 to : self
516516 . to
@@ -532,7 +532,7 @@ impl ToAscObj<AscEthereumTransaction_0_0_6> for EthereumTransactionData {
532532 ) -> Result < AscEthereumTransaction_0_0_6 , HostExportError > {
533533 Ok ( AscEthereumTransaction_0_0_6 {
534534 hash : asc_new ( heap, & self . hash , gas) ?,
535- index : asc_new ( heap, & BigInt :: from ( self . index ) , gas) ?,
535+ index : asc_new ( heap, & BigInt :: from_unsigned_u128 ( self . index ) , gas) ?,
536536 from : asc_new ( heap, & self . from , gas) ?,
537537 to : self
538538 . to
0 commit comments