MCPcopy Create free account
hub / github.com/across-protocol/relayer / mapTokenInfo

Method mapTokenInfo

test/mocks/MockHubPoolClient.ts:47–53  ·  view source on GitHub ↗
(address: Address, symbol: string, decimals?: number)

Source from the content-addressed store, hash-verified

45 }
46
47 mapTokenInfo(address: Address, symbol: string, decimals?: number): void {
48 this.tokenInfoMap[address.toBytes32()] = {
49 symbol: symbol,
50 address: address,
51 decimals: decimals ?? 18,
52 };
53 }
54
55 // eslint-disable-next-line @typescript-eslint/no-unused-vars
56 getTokenInfoForAddress(address: Address, _chainId: number): TokenInfo {

Calls

no outgoing calls

Tested by

no test coverage detected