Add more test cases for numeric host APIs (#66)

* Add test cases for bigInt host APIs

* Add test cases for bigDecimal fromString, plus and minus host APIs

* Add test cases for bigDecimal times and divideBy host APIs

* Throw an error on underflow or overflow in bigDecimal toString host API

* Avoid rounding of out of range bigDecimal values

* Use big number's byte size to set storage size of bigInt

* Add test cases for errors in bigDecimal host API
This commit is contained in:
prathamesh0
2021-12-28 16:08:05 +05:30
committed by nabarun
parent c75be57146
commit c79647548e
5 changed files with 512 additions and 67 deletions
+2 -1
View File
@@ -22,7 +22,8 @@ export const getDummyEventData = (): EventData => {
uncleHash: ZERO_HASH,
difficulty: '0',
gasLimit: '0',
gasUsed: '0'
gasUsed: '0',
author: ZERO_ADDRESS
};
const tx = {