-
Notifications
You must be signed in to change notification settings - Fork 1
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
Helios 14 #107
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…and a template for a transaction test moving on to testing transactions, I need to think about beforeAll, beforeEach and where does NetworkEmulator belong
…avoid deprecation warnings
now need to add validatorAddress to the scope
figuring out test organisation I need to have a simple example that will show me what is valid
…odule BREAKING CHANGE: #101
added lockAda as an importable statement
needed to get access to newer features around time BREAKING CHANGE: 106
FAIL tests/helios-vesting-lock.test.ts > a vesting contract lockAda transaction > tests lockAda tx import
Error: TypeError on line 7: expected 2 args for main
❯ Function.new node_modules/@hyperionbt/helios/helios.js:1421:10
❯ Function.typeError node_modules/@hyperionbt/helios/helios.js:1463:30
❯ Site.typeError node_modules/@hyperionbt/helios/helios.js:1338:20
❯ FuncStatement.typeError node_modules/@hyperionbt/helios/helios.js:1735:21
❯ MintingProgram.evalTypesInternal node_modules/@hyperionbt/helios/helios.js:36832:15
❯ MintingProgram.evalTypes node_modules/@hyperionbt/helios/helios.js:37134:15
❯ Function.new node_modules/@hyperionbt/helios/helios.js:36016:28
❯ Module.lockAda src/lockAda.ts:46:56
46| tx.addInputs(inputUtxos);
47|
48| const mintScript =`minting nft
|
new helios version requires stating arg to main explicitly BREAKING CHANGE: 106, 105, 104
aleeusgr
commented
May 27, 2023
src/lockAda.ts
Outdated
const txId: TxId = TxId::new(TX_ID) | ||
const outputId: TxOutputId = TxOutputId::new(txId, ` + inputUtxos[0].utxoIdx + `) | ||
|
||
func main(_, _, ctx: ScriptContext) -> Bool { |
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 error here?
tests/helios-vesting-lock.test.ts
Outdated
const txId: TxId = TxId::new(TX_ID) | ||
const outputId: TxOutputId = TxOutputId::new(txId, ` + inputUtxos[0].utxoIdx + `) | ||
|
||
func main(_, _, ctx: ScriptContext) -> Bool { |
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.
same change as in src/lockAda.ts
BREAKING CHANGE: 105
fixing errors after updating to helios-0.14.0 105
mooving to helios 0.14
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.