Skip to content

Commit 975fa44

Browse files
authored
docs: fix incorrect examples of Address.from checksum behaviour (#124)
Updated documentation to clarify checksumming behavior.
1 parent 024cb77 commit 975fa44

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/core/Address.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,24 +112,24 @@ export declare namespace checksum {
112112
}
113113

114114
/**
115-
* Converts a stringified address to a typed (checksummed) {@link ox#Address.Address}.
115+
* Converts a stringified address to a typed (optionally checksummed) {@link ox#Address.Address}.
116116
*
117117
* @example
118118
* ```ts twoslash
119119
* import { Address } from 'ox'
120120
*
121121
* Address.from('0xa0cf798816d4b9b9866b5330eea46a18382f251e')
122-
* // @log: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e'
122+
* // @log: '0xa0cf798816d4b9b9866b5330eea46a18382f251e'
123123
* ```
124124
*
125125
* @example
126126
* ```ts twoslash
127127
* import { Address } from 'ox'
128128
*
129129
* Address.from('0xa0cf798816d4b9b9866b5330eea46a18382f251e', {
130-
* checksum: false
130+
* checksum: true
131131
* })
132-
* // @log: '0xa0cf798816d4b9b9866b5330eea46a18382f251e'
132+
* // @log: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e'
133133
* ```
134134
*
135135
* @example

0 commit comments

Comments
 (0)