The following pull introduces the below mentioned enhancements and fixes:
Changes:
Simplified Logic Driver:
Introduced optional parameters (fuelPrice and fuelLimit) within the ix options for logic routine calls and deployment.
If fuelPrice is not explicitly provided, the system defaults to a value of 1.
When fuelPrice and fuelLimit are not provided, the implementation fetches fuel estimates using the moi.FuelEstimate method.
Error Handling in Contract Execution:
Modified behaviour of ix.result() and ix.wait() to throw an error if the contract method execution encounters an error.
The thrown error object includes a params field. In case of failure, developers can access the receipt through error.params.receipt
Introduction of u256 and i256:
Introduced new types u256 and i256.
Fix for Values Transfer in Estimating Fuel:
Resolved an issue where estimating fuel for values transfer resulted in zero.
The problem was identified in the transfer_values function, which took a Map but when converted to JSON resulted in an empty object ({}). This has been addressed.
Clean-Up:
Removed older build files cached in Git.
Update Example and Documentation:
Updated example code and documentation to reflect the changes made.
closes #26 #29 #27 #28
Note: This is a breaking change.
Changes include
[ ] Bugfix (non-breaking change that solves an issue)
[X] New feature (non-breaking change that adds functionality)
[X] Breaking change (change that is not backwards-compatible and/or changes current functionality)
Checklist
[X] I have assigned this PR to myself
[X] I have added at least 1 reviewer
[X] I have tested this code
[X] I have updated the README and other relevant documents (guides...)
The following pull introduces the below mentioned enhancements and fixes:
Changes:
fuelPrice
andfuelLimit
) within the ix options for logic routine calls and deployment.fuelPrice
is not explicitly provided, the system defaults to a value of 1.fuelPrice
andfuelLimit
are not provided, the implementation fetches fuel estimates using themoi.FuelEstimate
method.ix.result()
andix.wait()
to throw an error if the contract method execution encounters an error.params
field. In case of failure, developers can access the receipt througherror.params.receipt
Map
but when converted toJSON
resulted in an empty object ({}). This has been addressed.Note: This is a breaking change.
Changes include
Checklist