-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- prerelease version bump - implemented Value.from_flat - refactored some unit-test suites
- Loading branch information
1 parent
4dd7be3
commit 99bf004
Showing
10 changed files
with
1,399 additions
and
1,005 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export const VERSION = "0.17.0-28" | ||
export const VERSION = "0.17.0-29" |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,19 @@ | ||
import { describe, it } from "node:test" | ||
import { True, bytes, compileAndRunMany } from "./utils.js" | ||
import { True, bytes, compileForRun } from "./utils.js" | ||
|
||
describe("MintingPolicyHash", () => { | ||
compileAndRunMany([ | ||
{ | ||
description: "can be converted to ScriptHash and back", | ||
main: ` | ||
testing mph_to_from_script_hash | ||
func main(mph: MintingPolicyHash) -> Bool { | ||
sh = mph.to_script_hash(); | ||
mph_ = MintingPolicyHash::from_script_hash(sh); | ||
mph == mph_ | ||
}`, | ||
inputs: [ | ||
bytes( | ||
"00112233445566778899aabbccddeeff00112233445566778899aabb" | ||
) | ||
], | ||
output: True | ||
} | ||
]) | ||
it("can be converted to ScriptHash and back", () => { | ||
const runner = compileForRun(` | ||
testing mph_to_from_script_hash | ||
func main(mph: MintingPolicyHash) -> Bool { | ||
sh = mph.to_script_hash(); | ||
mph_ = MintingPolicyHash::from_script_hash(sh); | ||
mph == mph_ | ||
}`) | ||
|
||
runner( | ||
[bytes("00112233445566778899aabbccddeeff00112233445566778899aabb")], | ||
True | ||
) | ||
}) | ||
}) |
Oops, something went wrong.