File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -165,8 +165,8 @@ func convertToVerkle(ctx *cli.Context) error {
165165
166166		// Store the basic account data 
167167		var  (
168- 			nonce , balance , version  [32 ]byte 
169- 			newValues                =  make ([][]byte , 256 )
168+ 			nonce , balance , version ,  size  [32 ]byte 
169+ 			newValues                       =  make ([][]byte , 256 )
170170		)
171171		newValues [0 ] =  version [:]
172172		newValues [1 ] =  balance [:]
@@ -207,11 +207,10 @@ func convertToVerkle(ctx *cli.Context) error {
207207			}
208208
209209			// Write the code size in the account header group 
210- 			var  size  [32 ]byte 
211- 			newValues [3 ] =  acc .CodeHash [:]
212- 			newValues [4 ] =  size [:]
213210			binary .LittleEndian .PutUint64 (size [:8 ], uint64 (len (code )))
214211		}
212+ 		newValues [3 ] =  acc .CodeHash [:]
213+ 		newValues [4 ] =  size [:]
215214
216215		// Save every slot into the tree 
217216		if  ! bytes .Equal (acc .Root , emptyRoot [:]) {
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments