more logs
This commit is contained in:
parent
e7a2996234
commit
0fbfa69fa8
@ -17,31 +17,33 @@ public class GameProposalContract implements net.corda.v5.ledger.utxo.Contract {
|
|||||||
log.info("--> GameProposalContract.verify() called");
|
log.info("--> GameProposalContract.verify() called");
|
||||||
|
|
||||||
|
|
||||||
// requireThat(trx.getCommands().size() == 1, GameCommand.REQUIRE_SINGLE_COMMAND);
|
requireThat(trx.getCommands().size() == 1, GameCommand.REQUIRE_SINGLE_COMMAND);
|
||||||
// final GameCommand command = getSingleCommand(trx, GameCommand.class);
|
final GameCommand command = getSingleCommand(trx, GameCommand.class);
|
||||||
|
|
||||||
// log.info("--> GameProposalContract.verify: command "+command.getAction());
|
log.info("--> GameProposalContract.verify: command "+command.getAction());
|
||||||
|
|
||||||
// switch (command.getAction()) {
|
switch (command.getAction()) {
|
||||||
// case GAME_PROPOSAL_CREATE:
|
case GAME_PROPOSAL_CREATE:
|
||||||
// command.validateGameProposalCreate(trx);
|
command.validateGameProposalCreate(trx);
|
||||||
// break;
|
break;
|
||||||
|
|
||||||
// case GAME_PROPOSAL_ACCEPT:
|
case GAME_PROPOSAL_ACCEPT:
|
||||||
// command.validateGameProposalAccept(trx);
|
command.validateGameProposalAccept(trx);
|
||||||
// break;
|
break;
|
||||||
|
|
||||||
// case GAME_PROPOSAL_REJECT:
|
case GAME_PROPOSAL_REJECT:
|
||||||
// command.validateGameProposalReject(trx);
|
command.validateGameProposalReject(trx);
|
||||||
// break;
|
break;
|
||||||
|
|
||||||
// case GAME_PROPOSAL_CANCEL:
|
case GAME_PROPOSAL_CANCEL:
|
||||||
// command.validateGameProposalCancel(trx);
|
command.validateGameProposalCancel(trx);
|
||||||
// break;
|
break;
|
||||||
|
|
||||||
// default:
|
default:
|
||||||
// throw new GameCommand.ActionException();
|
throw new GameCommand.ActionException();
|
||||||
// }
|
}
|
||||||
|
|
||||||
|
log.info("--> GameProposalContract.verify: SUCCESS");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user