-
Notifications
You must be signed in to change notification settings - Fork 76
Conversation
Contract.prototype.deploy more flexible This addresses a long-standing issue where developers were not able to specify any address other than the default one when deploy/calling smart contracts. Tests have also been updated to provide `_scilla_version`, which is now a required parameter.
Codecov Report
@@ Coverage Diff @@
## master #102 +/- ##
==========================================
- Coverage 78.71% 78.06% -0.66%
==========================================
Files 33 36 +3
Lines 794 939 +145
Branches 106 127 +21
==========================================
+ Hits 625 733 +108
- Misses 168 204 +36
- Partials 1 2 +1
Continue to review full report at Codecov.
|
_tag: transition, | ||
// TODO: this should be string, but is not yet supported by lookup. | ||
params, | ||
params: args, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the string supported by the current lookup now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good but I have some general questions
msg = {_tag : "Main"; _recipient : _sender; _amount : Uint128 0; code : set_hello_code}; | ||
msgs = one_msg msg; | ||
send msgs | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to standardize all helloWorld
contracts with events instead of send msg
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently this test contract is kept in line with whatever is on master
of https://github.com/Zilliqa/scilla.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Personally i would use some constants for the gasPrice / gasLimit in tests instead of relying on " new BN(1000) / Long.fromNumber(1000) " but that's more of a preference
Description
This PR adds a number of requested features. Unfortunately, it also entails breaking changes.
Contract
by allowing manual specification ofpubKey
(sender) andnonce
maxAttempts
andinterval
toContract
methodsTransaction
fromContract.prototype.deploy
toQa
andfromQa
utility functions to@zilliqa-js/util
, as all units are nowqa
RPCResponse
types comply with the changes tolibServer
on the protocol sideconst enum
declarations were being nuked in the compiled bundle due to failure to pass inpreserveConstEnums
as a compiler option