Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

Commit

Permalink
added the options field to a PlaceOrderEvent (#149)
Browse files Browse the repository at this point in the history
Signed-off-by: awjh-ibm <andrew.hurt1@ibm.com>
  • Loading branch information
awjh-ibm authored and cazfletch committed Mar 1, 2018
1 parent 279c0b7 commit a669a13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/vehicle-manufacture-network/lib/script.js
Expand Up @@ -40,6 +40,7 @@ function placeOrder(orderRequest) {
var placeOrderEvent = factory.newEvent(namespace, 'PlaceOrderEvent');
placeOrderEvent.orderId = order.orderId;
placeOrderEvent.vehicleDetails = order.vehicleDetails;
placeOrderEvent.options = order.options;
placeOrderEvent.orderer = order.orderer;
emit(placeOrderEvent);
});
Expand Down
Expand Up @@ -69,6 +69,7 @@ transaction PlaceOrder {
event PlaceOrderEvent {
o String orderId
o VehicleDetails vehicleDetails
o Options options
--> Person orderer
}

Expand Down

0 comments on commit a669a13

Please sign in to comment.