File tree 2 files changed +31
-23
lines changed
2 files changed +31
-23
lines changed Original file line number Diff line number Diff line change @@ -117,16 +117,21 @@ builder.add_input(utxos[0])
117
117
# Send 1.5 ADA and a native asset (CHOC) in quantity of 2000 to an address.
118
118
builder.add_output(
119
119
TransactionOutput(
120
- Address.from_primitive(" addr_test1vrm9x2zsux7va6w892g38tvchnzahvcd9tykqf3ygnmwtaqyfg52x" ),
120
+ Address.from_primitive(
121
+ " addr_test1vrm9x2zsux7va6w892g38tvchnzahvcd9tykqf3ygnmwtaqyfg52x"
122
+ ),
121
123
Value.from_primitive(
122
- [1500000 ,
123
- {
124
- bytes .fromhex(" 57fca08abbaddee36da742a839f7d83a7e1d2419f1507fcbf3916522" ): # Policy ID
125
- {
126
- b ' CHOC' : 2000
127
- }
128
- }]
129
- )
124
+ [
125
+ 1500000 ,
126
+ {
127
+ bytes .fromhex(
128
+ " 57fca08abbaddee36da742a839f7d83a7e1d2419f1507fcbf3916522" # Policy ID
129
+ ): {
130
+ b " CHOC" : 2000 # Asset name and amount
131
+ }
132
+ },
133
+ ]
134
+ ),
130
135
)
131
136
)
132
137
@@ -136,14 +141,17 @@ builder.add_output(
136
141
TransactionOutput(
137
142
address,
138
143
Value.from_primitive(
139
- [2000000 ,
140
- {
141
- bytes .fromhex(" 57fca08abbaddee36da742a839f7d83a7e1d2419f1507fcbf3916522" ): # Policy ID
142
- {
143
- b ' CHOC' : 200
144
- }
145
- }]
146
- )
144
+ [
145
+ 2000000 ,
146
+ {
147
+ bytes .fromhex(
148
+ " 57fca08abbaddee36da742a839f7d83a7e1d2419f1507fcbf3916522" # Policy ID
149
+ ): {
150
+ b " CHOC" : 200 # Asset name and amount
151
+ }
152
+ },
153
+ ]
154
+ ),
147
155
)
148
156
)
149
157
Original file line number Diff line number Diff line change 45
45
1500000 ,
46
46
{
47
47
bytes .fromhex (
48
- "57fca08abbaddee36da742a839f7d83a7e1d2419f1507fcbf3916522"
49
- ): { # Policy ID
50
- b"CHOC" : 2000
48
+ "57fca08abbaddee36da742a839f7d83a7e1d2419f1507fcbf3916522" # Policy ID
49
+ ): {
50
+ b"CHOC" : 2000 # Asset name and amount
51
51
}
52
52
},
53
53
]
65
65
2000000 ,
66
66
{
67
67
bytes .fromhex (
68
- "57fca08abbaddee36da742a839f7d83a7e1d2419f1507fcbf3916522"
69
- ): { # Policy ID
70
- b"CHOC" : 200
68
+ "57fca08abbaddee36da742a839f7d83a7e1d2419f1507fcbf3916522" # Policy ID
69
+ ): {
70
+ b"CHOC" : 200 # Asset name and amount
71
71
}
72
72
},
73
73
]
You can’t perform that action at this time.
0 commit comments