Skip to content

Commit

Permalink
Merge pull request #53 from algorand/fix131
Browse files Browse the repository at this point in the history
-- Fix 1.3.1 build
  • Loading branch information
algorotem authored Sep 17, 2019
2 parents 36d4075 + 64897ee commit d309e7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
language: node_js
node_js:
- "9"
- "12"

install:
- curl https://raw.githubusercontent.com/algorand/algorand-sdk-testing/master/scripts/sdkupdate.sh -o ~/sdkupdate.sh
- chmod +x ~/sdkupdate.sh
- npm install

script:
- npm test
Expand Down
4 changes: 2 additions & 2 deletions src/client/kmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ function Kmd(token, baseServer = "http://127.0.0.1", port = 7833) {
let req = {
"wallet_handle_token": walletHandle,
"wallet_password": walletPassword,
"transaction": tx.toByte().toString('base64')
"transaction": Buffer.from(tx.toByte()).toString('base64')
};
let res = await c.post("/v1/transaction/sign", req);

Expand Down Expand Up @@ -342,7 +342,7 @@ function Kmd(token, baseServer = "http://127.0.0.1", port = 7833) {
let tx = new txn.Transaction(transaction);
let req = {
"wallet_handle_token": walletHandle,
"transaction": tx.toByte().toString('base64'),
"transaction": Buffer.from(tx.toByte()).toString('base64'),
"public_key": Buffer.from(pk).toString('base64'),
"partial_multisig": partial,
"wallet_password": pw
Expand Down

0 comments on commit d309e7f

Please sign in to comment.