File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1010
1111 const run = async ( ) => {
1212 const stateManager = new DefaultStateManager ( )
13- const address = new Address ( hexStringToBytes ( 'a94f5374fce5edbc8e2a8697c15331677e6ebf0b ') )
13+ const address = new Address ( hexToBytes ( '0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b ') )
1414 const account = new Account ( BigInt ( 0 ) , BigInt ( 1000 ) )
1515 await stateManager . checkpoint ( )
1616 await stateManager . putAccount ( address , account )
Original file line number Diff line number Diff line change @@ -102,7 +102,8 @@ export class Trie {
102102 valueEncoding = ValueEncoding . Bytes
103103 }
104104
105- this . DEBUG = process . env . DEBUG ?. includes ( 'ethjs' ) === true
105+ this . DEBUG =
106+ typeof window === 'undefined' ? process ?. env ?. DEBUG ?. includes ( 'ethjs' ) ?? false : false
106107 this . debug = this . DEBUG
107108 ? ( message : string , namespaces : string [ ] = [ ] ) => {
108109 let log = this . _debug
You can’t perform that action at this time.
0 commit comments