feat: implement copy-to-clipboard

This commit is contained in:
fragosti
2018-11-07 22:08:40 -08:00
parent 1151371e57
commit d7742029c7
4 changed files with 30 additions and 0 deletions

View File

@@ -21,4 +21,11 @@ export const etherscanUtil = {
}
return `https://${prefix}etherscan.io/tx/${txHash}`;
},
getEtherScanEthAddressIfExists: (ethAddress: string, networkId: number) => {
const prefix = etherscanPrefix(networkId);
if (_.isUndefined(prefix)) {
return;
}
return `https://${prefix}etherscan.io/address/${ethAddress}`;
},
};