Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added uint256 type as valid type for price and sku #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions test/supply_chain.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ contract("SupplyChain", function (accounts) {
"Struct Item should have a `sku` member"
);
assert(
isType(subjectStruct)("sku")("uint"),
"`sku` should be of type `uint`"
isType(subjectStruct)("sku")("uint") ||
isType(subjectStruct)("sku")("uint256"),
"`sku` should be of type `uint256`"
);
});

Expand All @@ -104,8 +105,9 @@ contract("SupplyChain", function (accounts) {
"Struct Item should have a `price` member"
);
assert(
isType(subjectStruct)("price")("uint"),
"`price` should be of type `uint`"
isType(subjectStruct)("price")("uint") ||
isType(subjectStruct)("price")("uint256"),
"`price` should be of type `uint256` "
);
});

Expand Down