Skip to content

Commit

Permalink
feat(network): expose connectedAddressChecksum (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvrs committed Oct 6, 2022
1 parent dc3fcdf commit e39d245
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/network/src/createNetwork.ts
Expand Up @@ -38,6 +38,9 @@ export async function createNetwork(initialConfig: NetworkConfig) {
const connectedAddress = computed(() =>
config.privateKey ? new Wallet(config.privateKey).address.toLowerCase() : undefined
);
const connectedAddressChecksummed = computed(() =>
config.privateKey ? new Wallet(config.privateKey).address : undefined
);

// Listen to new block numbers
const { blockNumber$, dispose: disposeBlockNumberStream } = createBlockNumberStream(providers);
Expand Down Expand Up @@ -72,5 +75,6 @@ export async function createNetwork(initialConfig: NetworkConfig) {
clock,
config,
connectedAddress,
connectedAddressChecksummed,
};
}

0 comments on commit e39d245

Please sign in to comment.