This repository has been archived by the owner on Feb 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(starknet): add sepolia network (#253)
* chore(starknet): add sepolia network * chore: do not estimate separately if not using explicit nonce
- Loading branch information
Showing
11 changed files
with
220 additions
and
143 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,13 @@ | ||
import { getAuthenticator } from '../../../../src/authenticators/starknet'; | ||
import { defaultNetwork } from '../../../../src/networks'; | ||
import { starknetNetworks, starknetGoerli } from '../../../../src/networks'; | ||
|
||
describe('authenticators', () => { | ||
describe('getAuthenticator', () => { | ||
it('should return correct authenticator from predefined default addresses', () => { | ||
expect( | ||
getAuthenticator( | ||
'0x046ad946f22ac4e14e271f24309f14ac36f0fde92c6831a605813fefa46e0893', | ||
defaultNetwork | ||
)?.type | ||
).toBe('vanilla'); | ||
const { Vanilla, EthTx } = starknetNetworks['sn-tn'].Authenticators; | ||
|
||
expect( | ||
getAuthenticator( | ||
'0x00d6f14d3df9ea2db12ed9572ab41d527f18dd24192e1744d3c100b2cd470812', | ||
defaultNetwork | ||
)?.type | ||
).toBe('ethTx'); | ||
it('should return correct authenticator from predefined default addresses', () => { | ||
expect(getAuthenticator(Vanilla, starknetGoerli)?.type).toBe('vanilla'); | ||
expect(getAuthenticator(EthTx, starknetGoerli)?.type).toBe('ethTx'); | ||
}); | ||
}); | ||
}); |
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.