Skip to content

Updates the balance for what it currently is to newAmount.

updateBalances<T>(newBalance, balances): BalanceArray<T>

Defined in: packages/bitbadgesjs-sdk/src/core/balances.ts:329

Updates the balance for what it currently is to newAmount.

Type Parameters

T

T extends NumberType

Parameters

newBalance

iBalance<T>

balances

iBalance<T>[]

Returns

BalanceArray<T>

Remarks

Returns a new BalanceArray. Does not modify the original.

Can also be used via the corresponding method with same name on BalanceArray

Edit this page on GitHub