Skip to content

Commit

Permalink
Merge pull request #1382 from emeraldpay/fix/invlid-sepolia-weth
Browse files Browse the repository at this point in the history
problem: invalid Wrapped Ether on Sepolia
  • Loading branch information
splix authored May 6, 2024
2 parents 964c856 + b2a09fc commit 6f3227b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/blockchains/tokens/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const TOKEN_TYPES = ['ERC20', 'ERC721', 'ERC1155'] as const;
const WRAPPED_TOKENS: Readonly<Partial<Record<BlockchainCode, string>>> = {
[BlockchainCode.ETH]: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
[BlockchainCode.ETC]: '0x1953cab0E5bFa6D4a9BaD6E05fD46C1CC6527a5a',
[BlockchainCode.Sepolia]: '0xc31e8a1087bf1460b9926274de4a03b0dd44a6da',
[BlockchainCode.Sepolia]: '0x097D90c9d3E0B50Ca60e1ae45F6A81010f9FB534',
};

export interface TokenData {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('CreateErc20ApproveTx', () => {
const wethTokenData: TokenData = {
name: 'Wrapped Ether',
blockchain: 10009,
address: '0xc31e8a1087bf1460b9926274de4a03b0dd44a6da',
address: '0x097D90c9d3E0B50Ca60e1ae45F6A81010f9FB534',
symbol: 'WSEPOLIA',
decimals: 18,
type: 'ERC20',
Expand All @@ -25,7 +25,7 @@ describe('CreateErc20ApproveTx', () => {

const tokenRegistry = new TokenRegistry([wethTokenData, weenusTokenData]);

const wethToken = tokenRegistry.byAddress(BlockchainCode.Sepolia, '0xc31e8a1087bf1460b9926274de4a03b0dd44a6da');
const wethToken = tokenRegistry.byAddress(BlockchainCode.Sepolia, '0x097d90c9d3e0b50ca60e1ae45f6a81010f9fb534');
const weenusToken = tokenRegistry.byAddress(BlockchainCode.Sepolia, '0xaFF4481D10270F50f203E0763e2597776068CBc5');

test('should create legacy approve tx', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop/defaults.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
{
"name": "Wrapped Ether",
"blockchain": 10009,
"address": "0xc31e8a1087bf1460b9926274de4a03b0dd44a6da",
"address": "0x097D90c9d3E0B50Ca60e1ae45F6A81010f9FB534",
"symbol": "WETS",
"decimals": 18,
"type": "ERC20",
Expand Down

0 comments on commit 6f3227b

Please sign in to comment.