Skip to content

Commit

Permalink
fix: proving strings on-chain
Browse files Browse the repository at this point in the history
  • Loading branch information
josipbagaric committed Feb 21, 2020
1 parent 534c821 commit a4d4a21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Expand Up @@ -44,7 +44,7 @@ export namespace PreciseProofs {
const type = typeof value;
switch (type) {
case "string":
return Buffer.from(value).toString("base64");
return utils.isAddress(value) ? value : Buffer.from(value).toString("base64");
case "number":
case "boolean":
case "object":
Expand Down

0 comments on commit a4d4a21

Please sign in to comment.