Skip to content

Commit

Permalink
Destructure Albatross client import
Browse files Browse the repository at this point in the history
  • Loading branch information
sisou committed Apr 29, 2024
1 parent 71f61ab commit d28b42b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/views/SignStaking.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export default class SignStaking extends Vue {
let keyLabel: string | undefined;
let recipientLabel = this.request.recipientLabel;
const Albatross = await window.loadAlbatross();
const transaction = Albatross.Transaction.fromAny(Nimiq.BufferUtils.toHex(
const { Transaction } = await window.loadAlbatross();
const transaction = Transaction.fromAny(Nimiq.BufferUtils.toHex(
this.request.transactions[this.request.transactions.length - 1],
)).toPlain();
Expand Down
4 changes: 2 additions & 2 deletions src/views/SignStakingSuccess.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ export default class SignStakingSuccess extends Vue {
@State private keyguardResult!: KeyguardClient.SignStakingResult[];
private async mounted() {
const Albatross = await window.loadAlbatross();
const { Transaction } = await window.loadAlbatross();
const result: SignedTransaction[] = this.keyguardResult.map((signedTransaction) => {
const hex = bytesToHex(signedTransaction.transaction);
const tx = Albatross.Transaction.fromAny(hex);
const tx = Transaction.fromAny(hex);
const plain = tx.toPlain();
return {
Expand Down

0 comments on commit d28b42b

Please sign in to comment.