diff --git a/background/src/wallet/wallet.ts b/background/src/wallet/wallet.ts index fb26a15..fcb0c06 100644 --- a/background/src/wallet/wallet.ts +++ b/background/src/wallet/wallet.ts @@ -88,7 +88,6 @@ export default class Wallet { "createSequentialWallet", "createPrivateKeyWallet", "sendNCG", - "nextNonce", "getPrivateKey", "sign", "signTx", diff --git a/popup/src/api/background.ts b/popup/src/api/background.ts index b88a468..5c3dee8 100644 --- a/popup/src/api/background.ts +++ b/popup/src/api/background.ts @@ -126,9 +126,6 @@ export default { ) => { return await callWallet("sendNCG", [sender, receiver, amount, nonce]); }, - nextNonce: async (address: string) => { - return await callWallet("nextNonce", [address]); - }, getPrivateKey: async (address: string, passphrase: string) => { return await callWallet("getPrivateKey", [address, passphrase]); }, diff --git a/popup/src/views/Send.vue b/popup/src/views/Send.vue index 8052483..0f3bb67 100644 --- a/popup/src/views/Send.vue +++ b/popup/src/views/Send.vue @@ -181,7 +181,7 @@ export default defineComponent({ throw new Error("'account' state seems not loaded yet."); } if (await (this.$refs["sendForm"] as VForm).validate()) { - this.nonce = await bg.wallet.nextNonce(this.account.address); + this.nonce = await bg.graphql("getNextTxNonce", this.account.address); this.confirmDialog = true; } },