Skip to content

Commit

Permalink
fix: importing in mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Apr 5, 2022
1 parent b4b855f commit 0fc7418
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/encoder.ts
@@ -1,4 +1,4 @@
import * as bs58 from 'bs58'
import { encode as bs58Encode, decode as bs58Decode } from 'bs58'
import { sha256 } from 'sha.js'
import {
DecodeError,
Expand Down Expand Up @@ -53,8 +53,8 @@ const base64 = {
}

const base58 = {
encode: (buffer: Buffer | string) => bs58.encode(addChecksum(buffer)),
decode: (string: string) => getPayload(bs58.decode(string))
encode: (buffer: Buffer | string) => bs58Encode(addChecksum(buffer)),
decode: (string: string) => getPayload(bs58Decode(string))
}

/**
Expand Down

0 comments on commit 0fc7418

Please sign in to comment.