Skip to content

Commit

Permalink
Build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
greymistcube committed Jan 5, 2024
1 parent f1baeee commit 2e7d38f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Lib9c.MessagePack/AccountStateDelta.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ public AccountStateDelta(byte[] bytes)
public IAccount SetState(Address address, IValue state) =>
new AccountStateDelta(_states.SetItem(address, state), _balances, _totalSupplies);

public IAccount RemoveState(Address address) =>
new AccountStateDelta(_states.Remove(address), _balances, _totalSupplies);

public FungibleAssetValue GetBalance(Address address, Currency currency)
{
if (!_balances.TryGetValue((address, currency), out BigInteger rawValue))
Expand Down

0 comments on commit 2e7d38f

Please sign in to comment.