-
```
import { ERC20Abi } from "./ERC20Abi.js";
import Web3 from "web3";
const web3 = new Web3();
const contract = new web3.eth.Contract(
ERC20Abi,
"0xdac17f958d2ee523a2206206994597c13d831ec…
vlddm updated
4 years ago
-
repro:
**v7.2.0**
```
math.bignumber(-175).modulo(100)
// -75
```
**v7.3.0**
```
math.bignumber(-175).modulo(100)
// 25
```
-
Currently we can do the following:
```
divide (embed 1) (embed 1000) `shouldEqual` embed 0
```
It would be nice to do something like this:
```
divide (embed 1) (embed 1000) `shouldEqual` embed…
-
## Description
To fully test the implementation of #2044 we should run all available scenarios manually.
## Acceptance criteria
- The process how to run scenarios is documented
- All scenarios h…
-
It appears like MathJS does not support adding custom literals. Neither it supports built-in literal for hexadecimal numbers.
In some applications, it would be extremely useful to have hexadecimal …
-
I have been attempting to implement a new type `BigFraction` from `fraction.js/bigfraction.js`. So far things have gone pretty well, except I've run into an issue with Units. Several of the definiti…
-
#### Expected behavior
`abi.encodeParameter` should process BigNumbers in the same way for `uint256` and `uint256[]`
#### Actual behavior
ABI coder encodes arrays of BigNumbers incorrec…
-
```javascript
tokenSale.deploy({ data, arguments: [params.openingTime, params.closingTime, params.rate, params.wallet, 100e14, params.token, params.goal] }).send({
from: '0xdeadbeef',
gas: 50…
-
It's very easy to accidentally try to compare two BigNumbers with `===` instead of `.isEqualTo()`.
Is there any way to throw an error or show a warning when doing this? I understand it might not be…
-
```
> eth.utils.parseEther('1').mul(eth.BigNumber.from(10).pow(0)).toString()
'1000000000000000000'
> eth.utils.parseEther('1').mul(eth.BigNumber.from(10).pow(-8)).toString()
'10000000000000000000…