Skip to content

Commit c5d0165

Browse files
authored
Beta (#98)
* Viat Demo Patch
1 parent 05bfb34 commit c5d0165

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

viat/blocks/block.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,6 @@ export class Block {
193193
}
194194
setCore(primaryArg, value) {
195195
if (isPlainObject(primaryArg)) {
196-
if (primaryArg.amount) {
197-
primaryArg.amount = toSmallestUnit(primaryArg.amount, 'mana');
198-
}
199196
assign(this.block.data.core, primaryArg);
200197
return this;
201198
}

viat/math/coin.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,7 @@ export function toSmallestUnit(value) {
117117
return parseStringUnits(value);
118118
} else if (isBigInt(value)) {
119119
const strValue = value.toString();
120-
if (isBigIntBelowMaxSupply(value) && strValue.length <= coinMaxSupplyLength) {
121-
return value;
122-
}
120+
return parseStringUnits(strValue);
123121
}
124122
return;
125123
}

0 commit comments

Comments
 (0)