-
Notifications
You must be signed in to change notification settings - Fork 4
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
Auction contract (cameligo + jsligo) #82
base: main
Are you sure you want to change the base?
Conversation
|
||
|
||
let setCommissionFee = ([param, store] : [Parameter.set_fee_param, Storage.t]) : return_ => { | ||
let _check_admin : unit = Assert.assert_only_admin(store); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let _check_admin : unit = Assert.assert_only_admin(store); | |
Assert.assert_only_admin(store); |
Also, should have been Assert.onlyAdmin(store);
for better readability (and camelCase)
All further binds of function calls returning unit are not necessary
let _check_auction_not_started : unit = Assert.assert_auction_is_started(currentAuction); | ||
let _check_auction_not_ended : unit = Assert.assert_auction_is_not_ended(currentAuction); | ||
|
||
let modified_auctions = Big_map.remove(param, store.auctionIdToAuction); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not camelCase
@@ -0,0 +1,120 @@ | |||
"use strict"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these js files can be avoided by using ts-node to execute the ts ones
@@ -0,0 +1,23 @@ | |||
{ | |||
"name": "Smarketplace", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need review of this content
@@ -0,0 +1,121 @@ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need tests in jsligo, anyway, we should probably wait for validation of cameligo before spending time of transpilation
No description provided.