mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-27 03:58:06 +00:00
core: use Application trigger in CalculateClaimable()
It doesn't need a System one.
This commit is contained in:
parent
2522271161
commit
044786b995
1 changed files with 1 additions and 1 deletions
|
@ -1143,7 +1143,7 @@ func (bc *Blockchain) UnsubscribeFromExecutions(ch chan<- *state.AppExecResult)
|
|||
// CalculateClaimable calculates the amount of GAS generated by owning specified
|
||||
// amount of NEO between specified blocks.
|
||||
func (bc *Blockchain) CalculateClaimable(value *big.Int, startHeight, endHeight uint32) *big.Int {
|
||||
ic := bc.newInteropContext(trigger.System, bc.dao, nil, nil)
|
||||
ic := bc.newInteropContext(trigger.Application, bc.dao, nil, nil)
|
||||
res, _ := bc.contracts.NEO.CalculateBonus(ic, value, startHeight, endHeight)
|
||||
return res
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue