Skip to content

Commit d309e7f

Browse files
authored
Merge pull request #53 from algorand/fix131
-- Fix 1.3.1 build
2 parents 36d4075 + 64897ee commit d309e7f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
language: node_js
22
node_js:
3-
- "9"
3+
- "12"
44

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

910
script:
1011
- npm test

src/client/kmd.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ function Kmd(token, baseServer = "http://127.0.0.1", port = 7833) {
256256
let req = {
257257
"wallet_handle_token": walletHandle,
258258
"wallet_password": walletPassword,
259-
"transaction": tx.toByte().toString('base64')
259+
"transaction": Buffer.from(tx.toByte()).toString('base64')
260260
};
261261
let res = await c.post("/v1/transaction/sign", req);
262262

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

0 commit comments

Comments
 (0)