onflow / flow-go

A fast, secure, and developer-friendly blockchain built to support the next generation of games, apps, and the digital assets that power them.
GNU Affero General Public License v3.0
533 stars 178 forks source link

Unify `.balance` and `.availableBalance` calls #3785

Open janezpodhostnik opened 1 year ago

janezpodhostnik commented 1 year ago

Problem Definition

the core contract methods used by the FVM to get balance an available balance are inconsistent.

Balance accepts a public account. Available balance accepts an address and then retrieves a public account as the first step.

This is an FVM issue, since changes are required in the FVM and core contracts, and (possibly) cadence.

Proposed Solution

Available balance should also expect a public account.

github-actions[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.