From 274204c21e421ed13c66411ce56bb70dea03d410 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 28 Sep 2016 23:41:34 +0200 Subject: check contract hash, fix unicode bug --- lib/wallet/cryptoApi.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/wallet/cryptoApi.ts') diff --git a/lib/wallet/cryptoApi.ts b/lib/wallet/cryptoApi.ts index 585aa39e7..db29592fc 100644 --- a/lib/wallet/cryptoApi.ts +++ b/lib/wallet/cryptoApi.ts @@ -176,6 +176,10 @@ export class CryptoApi { return this.doRpc("createPreCoin", 1, denom, reserve); } + hashString(str: string): Promise { + return this.doRpc("hashString", 1, str); + } + hashRsaPub(rsaPub: string): Promise { return this.doRpc("hashRsaPub", 2, rsaPub); } -- cgit v1.2.3