Skip to content

Commit 9d56ac6

Browse files
committed
docs
1 parent 8cb0dcf commit 9d56ac6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,19 @@ formatUnits
2121
BasedUtils.formatUnits(BigInt("6900000000000"), 10) // "69"
2222
```
2323

24+
parseEther
25+
26+
```swift
27+
BasedUtils.parseEther("1") // BigInt("1000000000000000000")
28+
BasedUtils.parseEther("1", .gwei) // BigInt("1000000000")
29+
```
30+
31+
parseUnits
32+
33+
```swift
34+
BasedUtils.parseUnits("40", 18) // BigInt("40000000000000000000")
35+
```
36+
2437
isAddress
2538

2639
```swift

0 commit comments

Comments
 (0)