Skip to content

Commit

Permalink
Valerian's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ineiti committed Oct 20, 2020
1 parent a38d357 commit 9a94b72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions external/js/cothority/spec/helpers/bctest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export class BCTest {
if (BCTest.bct === undefined) {
BCTest.bct = await BCTest.init();
} else {
// Wait for 1s in case a transaction from a previous test is still being accepted.
await new Promise((resolve) => setTimeout(resolve, 1000));
}

Expand Down
4 changes: 3 additions & 1 deletion external/js/cothority/src/byzcoin/client-transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ export default class ClientTransaction extends Message<ClientTransaction> {
}
}

type InstructionType = 0 | 1 | 2;

/**
* An instruction represents one action
*/
Expand All @@ -128,7 +130,7 @@ export class Instruction extends Message<Instruction> {
* Get the type of the instruction
* @returns the type as a number
*/
get type(): number {
get type(): InstructionType {
if (this.spawn) {
return Instruction.typeSpawn;
}
Expand Down

0 comments on commit 9a94b72

Please sign in to comment.