Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Commit

Permalink
Merge 132c4bf into 5576e05
Browse files Browse the repository at this point in the history
  • Loading branch information
axelchalon committed Dec 19, 2018
2 parents 5576e05 + 132c4bf commit bbf2157
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/light.js/src/rpc/eth.ts
Expand Up @@ -53,11 +53,11 @@ export function balanceOf$ (address: Address, options?: RpcObservableOptions) {
* @return - An Observable containing the transaction count.
*/
export function transactionCountOf$ (address: Address, options?: RpcObservableOptions) {
return createRpc$<any, number | Symbol>({
return createRpc$<any, BigNumber | Symbol>({
calls: ['eth_getTransactionCount'],
frequency: [frequency.onEveryBlock$, frequency.onStartup$],
name: 'transactionCountOf$',
pipes: api => [switchMapPromise(() => api.eth.getTransactionCount(address).then(Number))]
pipes: api => [switchMapPromise(() => api.eth.getTransactionCount(address))]
})(options)(address);
}

Expand Down

0 comments on commit bbf2157

Please sign in to comment.