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

[Astra] rename cleanup : make sure the tests are passing[Rust unit and integration tests] #3

Merged
merged 39 commits into from
Sep 12, 2023

Conversation

amityadav0
Copy link

  • Update tests to use workspaces instead of near-sdk-sim

@amityadav0 amityadav0 marked this pull request as ready for review September 10, 2023 17:06
@amityadav0 amityadav0 marked this pull request as draft September 10, 2023 17:07
@amityadav0 amityadav0 changed the title [Astra] rename cleanup : make sure the tests are passing [Astra] rename cleanup : make sure the tests are passing[Rust unit and integration tests] Sep 11, 2023
.gitignore Outdated Show resolved Hide resolved
@amityadav0 amityadav0 marked this pull request as ready for review September 11, 2023 14:41
@@ -161,7 +156,7 @@ impl Contract {
/// On expired, anyone can call it to free up the claim slot.
#[payable]
pub fn bounty_done(&mut self, id: u64, account_id: Option<AccountId>, description: String) {
let sender_id = account_id.unwrap_or_else(|| env::predecessor_account_id());
let sender_id = account_id.unwrap_or_else(env::predecessor_account_id);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you sure this will work? it is different type than env::predecessor_account_id()

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ran cargo lint fix. didn't change it

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have test for it as well in test_general

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks good

Copy link

@sczembor sczembor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left few comments

Copy link

@robert-zaremba robert-zaremba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@@ -161,7 +156,7 @@ impl Contract {
/// On expired, anyone can call it to free up the claim slot.
#[payable]
pub fn bounty_done(&mut self, id: u64, account_id: Option<AccountId>, description: String) {
let sender_id = account_id.unwrap_or_else(|| env::predecessor_account_id());
let sender_id = account_id.unwrap_or_else(env::predecessor_account_id);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks good

@amityadav0 amityadav0 merged commit 58e7bab into master Sep 12, 2023
1 check passed
@amityadav0 amityadav0 deleted the upgrade-tests branch September 12, 2023 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants