@near-eth/client
Advanced tools
Comparing version 0.2.1 to 1.0.0
@@ -215,7 +215,3 @@ "use strict"; | ||
catch (e) { | ||
await storage.update(transfer, { | ||
status: status.FAILED, | ||
errors: [...transfer.errors, e.message] | ||
}); | ||
throw e; | ||
console.error(e); | ||
} | ||
@@ -222,0 +218,0 @@ } |
@@ -138,2 +138,5 @@ "use strict"; | ||
// decimals defaults to 18 for old transfers in state that didn't record transfer.decimals | ||
if (!n) { | ||
return new decimal_js_1.Decimal(0); | ||
} | ||
return new decimal_js_1.Decimal(n).dividedBy(10 ** decimals); | ||
@@ -140,0 +143,0 @@ } |
{ | ||
"name": "@near-eth/client", | ||
"version": "0.2.1", | ||
"version": "1.0.0", | ||
"license": "(MIT AND Apache-2.0)", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -181,3 +181,3 @@ `@near-eth/client` – the Rainbow Bridge client library 🌈🌉 | ||
```html | ||
<form id="sendErc20ToNear> | ||
<form id="sendErc20ToNear"> | ||
<input id="erc20Address" /> | ||
@@ -184,0 +184,0 @@ <input id="amount" /> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
49289
677