We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05bfb34 commit c5d0165Copy full SHA for c5d0165
viat/blocks/block.js
@@ -193,9 +193,6 @@ export class Block {
193
}
194
setCore(primaryArg, value) {
195
if (isPlainObject(primaryArg)) {
196
- if (primaryArg.amount) {
197
- primaryArg.amount = toSmallestUnit(primaryArg.amount, 'mana');
198
- }
199
assign(this.block.data.core, primaryArg);
200
return this;
201
viat/math/coin.js
@@ -117,9 +117,7 @@ export function toSmallestUnit(value) {
117
return parseStringUnits(value);
118
} else if (isBigInt(value)) {
119
const strValue = value.toString();
120
- if (isBigIntBelowMaxSupply(value) && strValue.length <= coinMaxSupplyLength) {
121
- return value;
122
+ return parseStringUnits(strValue);
123
124
return;
125
0 commit comments