-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Accessor Methods #140
New Accessor Methods #140
Conversation
…act, InputBox, OutBox, and their associated implicit classes
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.
in general, it looks good and in the spirit of Appkit design.
common/src/main/java/org/ergoplatform/appkit/impl/ErgoScriptContract.java
Outdated
Show resolved
Hide resolved
common/src/main/java/org/ergoplatform/appkit/impl/ErgoScriptContract.java
Show resolved
Hide resolved
common/src/main/java/org/ergoplatform/appkit/impl/ErgoTreeContract.java
Outdated
Show resolved
Hide resolved
lib-impl/src/main/java/org/ergoplatform/appkit/impl/OutBoxImpl.scala
Outdated
Show resolved
Hide resolved
Added the the changes you requested @aslesarenko |
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.
LGTM, but please the new comment I added
@@ -270,7 +270,7 @@ class TxBuilderSpec extends PropSpec with Matchers | |||
val recipient = address | |||
|
|||
val amountToSend = 1000000 | |||
val pkContract = new ErgoTreeContract(recipient.getErgoAddress.script) | |||
val pkContract = new ErgoTreeContract(recipient.getErgoAddress.script, recipient.getNetworkType) |
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 like now a new constructor can be added with Address parameter.
Created additional accessor methods in InputBox, OutBox, ErgoContract, and UnsignedTransaction along with their Impl versions. Also replaced token function in OutBox with getTokens() and passed in additional variables when building UnsignedTransactions