Skip to content

Commit 28d859b

Browse files
committed
don't enforce blind signing
1 parent 4eb150f commit 28d859b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/components/ledger/SignLedgerTransaction.vue

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
</template>
3737

3838
<script>
39-
import { v2InputSigHash } from '@/sia'; // encodeTransaction
39+
import { v2InputSigHash, encodeTransaction } from '@/sia';
4040
import { formatNumber } from '@/utils/format';
4141
4242
import ConnectLedger from './ConnectLedger';
@@ -147,11 +147,10 @@ export default {
147147
}
148148
},
149149
async signTransaction() {
150-
throw new Error('blind signing is temporarily required until Ledger supports V2 transactions');
151-
// const encoded = await encodeTransaction(this.signed);
150+
const encoded = await encodeTransaction(this.signed);
152151
153-
// for (; this.signatures < this.requiredSignatures.length; this.signatures++)
154-
// this.signed.signatures[this.signatures].signature = await this.ledgerDevice.signTransaction(encoded, this.signatures, this.requiredSignatures[this.signatures], this.changeIndex);
152+
for (; this.signatures < this.requiredSignatures.length; this.signatures++)
153+
this.signed.signatures[this.signatures].signature = await this.ledgerDevice.signTransaction(encoded, this.signatures, this.requiredSignatures[this.signatures], this.changeIndex);
155154
},
156155
async onSignTransaction() {
157156
if (this.signing)

0 commit comments

Comments
 (0)