Skip to content

Commit

Permalink
Merge branch 'main' into add-sepolia-testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
Romsters authored Oct 18, 2023
2 parents dbc1568 + e8bfbdf commit 3ecdb70
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 4 additions & 4 deletions packages/worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@
"coverageDirectory": "../coverage",
"coverageThreshold": {
"global": {
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
"branches": 99,
"functions": 99,
"lines": 99,
"statements": 99
}
},
"testEnvironment": "node",
Expand Down
6 changes: 5 additions & 1 deletion packages/worker/src/blockchain/blockchain.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,11 @@ export class BlockchainService implements OnModuleInit {
erc20Contract.decimals(),
erc20Contract.name(),
]);
return { symbol, decimals, name };
return {
symbol: symbol?.replace(/\0/g, ""),
decimals,
name: name?.replace(/\0/g, ""),
};
}

public async getBalance(address: string, blockNumber: number, tokenAddress: string): Promise<BigNumber> {
Expand Down

0 comments on commit 3ecdb70

Please sign in to comment.