Skip to content

Commit

Permalink
Update docs and new aiken version
Browse files Browse the repository at this point in the history
  • Loading branch information
t0anhh committed Mar 25, 2024
1 parent 0d27eaa commit 1722846
Show file tree
Hide file tree
Showing 3 changed files with 213 additions and 224 deletions.
23 changes: 8 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,24 +83,17 @@ fn log(self: a, serializer: fn(a) -> String) {
So we can attach it to anywhere like this:

```diff
Input {
output_reference: OutputReference(TransactionId('tx_0'), 0),
let input = Input {
output_reference: OutputReference(TransactionId("tx_0"), 0),
output: Output {
value: value.from_lovelace(111_000_000) |> value.add("pid", "name", 1),
address: Address {
payment_credential: ScriptCredential('script_hash')
stake_credential: None
payment_credential: ScriptCredential("script_hash"),
stake_credential: None,
},
value: Value ([
h'',
h'',
111000000
],[
h'706964', # pid
h'6E616D65', # name
1
]),
datum: NoDatum
}
datum: NoDatum,
reference_script: None,
},
}
+ |> log(stringify.input)
```
Expand Down
Loading

0 comments on commit 1722846

Please sign in to comment.