SuiBalance.fromProto constructor

SuiBalance.fromProto(
  1. Balance b
)

Implementation

factory SuiBalance.fromProto(Balance b) => SuiBalance(
      coinType: b.coinType,
      totalBalance: BigInt.from(b.balance.toInt()),
      addressBalance: BigInt.from(b.addressBalance.toInt()),
      coinBalance: BigInt.from(b.coinBalance.toInt()),
    );