Skip to content

Commit

Permalink
fix transfer number issue
Browse files Browse the repository at this point in the history
  • Loading branch information
zj authored and notatestuser committed Feb 18, 2019
1 parent 2ec443a commit 7440bd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@binance-chain/javascript-sdk",
"version": "2.4.11",
"version": "2.4.12",
"main": "lib/index.js",
"scripts": {
"test": "cross-env NODE_ENV=test jest",
Expand Down
2 changes: 1 addition & 1 deletion src/client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export class BncClient {
async transfer(fromAddress, toAddress, amount, asset, memo, sequence) {
const accCode = crypto.decodeAddress(fromAddress)
const toAccCode = crypto.decodeAddress(toAddress)
amount = amount * Math.pow(10, 8)
amount = parseInt(amount * Math.pow(10, 8))

const coin = {
denom: asset,
Expand Down

0 comments on commit 7440bd0

Please sign in to comment.