When dapps-staking precompile ReadStakedAmountOnContract is called from other contract it fails with:
(-32603) VM Exception while processing transaction: revert (can't call non-static function in static context)
This is due to wrong function modifier for recently added ReadStakedAmountOnContract
Check list
[ ] contains breaking changes
[ ] adds new feature
[x] modifies existing feature (bug fix or improvements)
[ ] relies on other tasks
[ ] documentation changes
[ ] tests and/or benchmarks are included
[ ] changed API client type definition or chain metadata
This pull request makes the following changes:
Adds
(ex: Add feature A)
Fixes
(ex: Fix validation function)
Changes
(ex: Change document B)
To-dos
*Feel free to remove this section if it's not applicable
Pull Request Summary
When dapps-staking precompile
ReadStakedAmountOnContract
is called from other contract it fails with:(-32603) VM Exception while processing transaction: revert (can't call non-static function in static context)
This is due to wrong function modifier for recently addedReadStakedAmountOnContract
Check list
This pull request makes the following changes:
Adds
Fixes
Changes
To-dos