-
Notifications
You must be signed in to change notification settings - Fork 265
chore: update near-* dependencies to 0.31 release #1379
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
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1379 +/- ##
==========================================
- Coverage 80.83% 80.81% -0.03%
==========================================
Files 104 104
Lines 15443 15457 +14
==========================================
+ Hits 12483 12491 +8
- Misses 2960 2966 +6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
LogicMockAction::DeployGlobalContract { receipt_index, code, mode } => { | ||
let contract_mode: GlobalContractDeployMode = match mode { | ||
GlobalContractDeployModeVM::AccountId => GlobalContractDeployMode::AccountId, | ||
GlobalContractDeployModeVM::CodeHash => GlobalContractDeployMode::CodeHash, | ||
}; | ||
|
||
Self::DeployGlobalContract { receipt_index, code, mode: contract_mode } | ||
} | ||
LogicMockAction::UseGlobalContract { receipt_index, contract_id } => { | ||
let contract_identifier: GlobalContractIdentifier = match contract_id { | ||
GlobalContractIdentifierVM::AccountId(account_id) => { | ||
GlobalContractIdentifier::AccountId(account_id) | ||
} | ||
GlobalContractIdentifierVM::CodeHash(code_hash) => { | ||
GlobalContractIdentifier::CodeHash(code_hash) | ||
} | ||
}; | ||
|
||
Self::UseGlobalContract { receipt_index, contract_id: contract_identifier } | ||
} |
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.
I believe there is a better way to do this, however, as GlobalContractDeployMode
and GlobalContractIdentifier
in near_vm_runner
do not derive PartialEq
and Eq
, I see using previously mentioned types from near_primitives::action
as one of the main solutions to this (esp, as near_primitives
already included for unit-testing
feature)
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.
Sounds good. Maybe even better comparing to exposing some near vm runner types
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.
@race-of-sloths score 3
@vsavchyn-dev Thank you for your contribution! Your pull request is now a part of the Race of Sloths! Current status: executed
Your contribution is much appreciated with a final score of 3! @frol received 25 Sloth Points for reviewing and scoring this pull request. What is the Race of SlothsRace of Sloths is a friendly competition where you can participate in challenges and compete with other open-source contributors within your normal workflow For contributors:
For maintainers:
Feel free to check our website for additional details! Bot commands
|
No description provided.