-
Notifications
You must be signed in to change notification settings - Fork 198
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
Payable by sc #3602
Payable by sc #3602
Conversation
Codecov Report
@@ Coverage Diff @@
## development #3602 +/- ##
===============================================
- Coverage 74.00% 74.00% -0.01%
===============================================
Files 582 582
Lines 74888 74910 +22
===============================================
+ Hits 55424 55436 +12
- Misses 15058 15067 +9
- Partials 4406 4407 +1
Continue to review full report at Codecov.
|
@@ -425,6 +439,10 @@ func (bh *BlockChainHookImpl) IsPayable(address []byte) (bool, error) { | |||
} | |||
|
|||
metadata := vmcommon.CodeMetadataFromBytes(userAcc.GetCodeMetadata()) | |||
if bh.flagIsPayableBySC.IsSet() && bh.IsSmartContract(sndAddress) { | |||
return metadata.Payable || metadata.PayableBySC, nil |
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.
👍
The base branch was changed.
New feature - contracts payable by SC.
Special testing: contract A transfers tokens for contract B - contract B is deployed as payable by contract.