Created
October 28, 2018 22:59
-
-
Save mayorcoded/a545e2596475b0b89e14e394854a7a68 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
truffle(develop)> let addFoodItemToCart = (foodName, price) => {foodCart.addFoodItem(foodName, price).then((trxn) => { const details = trxn.logs[0].args; details.sku = details.sku.toNumber(); details.price = details.price.toNumber(); details.state = trxn.logs[0].event; console.log(details);});} |
khandar-william
commented
Nov 6, 2018
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment