Skip to content

Commit

Permalink
Merge pull request #1 from crypto-meetup-dev/master
Browse files Browse the repository at this point in the history
get from base
  • Loading branch information
flyq authored Nov 3, 2018
2 parents fa31bda + 65f8a0f commit 7ef0a64
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@

<script>
import { mapActions, mapState } from 'vuex';
import API from './util/api';
import API, { eos, currentEOSAccount } from './util/api';
function padTimeZero(str) {
const t = `00${str}`;
Expand Down Expand Up @@ -236,21 +236,21 @@ export default {
},
async claim() {
try {
const contract = await store.store.scatter.contract("cryptomeetup")
const contract = await eos().contract('cryptomeetup');
await contract.claim(
store.store.account.name,
{
authorization: [`${store.store.account.name}@${store.store.account.authority}`]
}
)
this.scatterAccount.name,
{
authorization: [`${this.scatterAccount.name}@${this.scatterAccount.authority}`],
},
);
this.$notify.success({
title: "提取成功",
message: "请耐心等待"
title: '提取成功',
message: '请耐心等待',
});
} catch (error) {
this.$notify.error({
title: "提取失败",
message: error.message
title: '提取失败',
message: error.message,
});
}
},
Expand Down
1 change: 1 addition & 0 deletions src/util/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,4 @@ const API = {
};

export default API;
export { eos, currentEOSAccount };

0 comments on commit 7ef0a64

Please sign in to comment.