Skip to content

Commit

Permalink
update [email protected] for latest testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
totiz committed Dec 16, 2019
1 parent e1c3cf7 commit eddb27b
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 21 deletions.
38 changes: 19 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@download/blockies": "^1.0.3",
"axios": "^0.19.0",
"buefy": "^0.7.7",
"kulap-libra": "^2.0.4",
"kulap-libra": "^2.0.5",
"lodash": ">=4.17.13",
"lodash.defaultsdeep": ">=4.6.1",
"moment": "^2.24.0",
Expand Down
4 changes: 4 additions & 0 deletions src/service/libra_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ class Libra {

// Transfer
const response = await client.transferCoins(account, toAddress, amountToTransfer)

// temporary wait 2 seconds for consensus
await new Promise((resolve) => { setTimeout(() => { resolve() }, 2000) })

// if (response.acStatus !== LibraAdmissionControlStatus.ACCEPTED) {
// console.log(JSON.stringify(response))
// throw new Error(`admission_control failed with status ${LibraAdmissionControlStatus[response.acStatus]}`)
Expand Down
2 changes: 1 addition & 1 deletion src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default new Vuex.Store({
balance: '',
mnemonic: '',
toAddress: '',
AMOUNT_TO_MINT: '1000'
AMOUNT_TO_MINT: '100'
},
actions: {
updateUserData ({ commit }, { userAddress, userAddressShort, balance, mnemonic }) {
Expand Down

0 comments on commit eddb27b

Please sign in to comment.