Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Contract buy gas did not check can withdraw #1980

@xlc

Description

@xlc

pub fn buy_gas<T: Trait>(

It should call ensure_account_can_withdraw to ensure the fund is not locked.

This is fixed by #1815 because fees.charge_fee calls balances.withdraw which check if the fund is not locked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    I3-bugThe node fails to follow expected behavior.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions