generated from fission-codes/js-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve eth<>fil address translation
- eth address is more strict now with checksum support - new export `isIdMaskAddress` to check if an eth address is a ID mask address - `fromEthAddress` now returns an`AddressId` instance if address is a ID Mask Address or an `AddressDelegated` - `toEthAddress` now supports `AddressId` input and returns a eth id mask address - `AddressId` has a new static method `fromEthAddress` to create an instance from eth address and a new instance method `toEthAddress` to return a checksumed eth address - `AddressDelegated` has a new static method `fromEthAddress` to create an instance from eth address and a new instance method `toEthAddress` to return a checksumed eth address - all eth related code checks for 20 byte payload size and checksums the address
- Loading branch information
1 parent
86a168d
commit b86981d
Showing
3 changed files
with
284 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.