@@ -33,7 +33,7 @@ fn inscriptions_can_be_burned() {
33
33
<span title=burned>🔥</span>
34
34
</dd>
35
35
<dt>value</dt>
36
- <dd>9918 </dd>
36
+ <dd>1 </dd>
37
37
.*
38
38
<dt>content length</dt>
39
39
<dd>3 bytes</dd>
@@ -116,7 +116,7 @@ fn runic_outputs_are_protected() {
116
116
}
117
117
118
118
#[ test]
119
- fn cannot_burn_inscriptions_on_large_utxos ( ) {
119
+ fn burns_only_one_sat ( ) {
120
120
let core = mockcore:: spawn ( ) ;
121
121
122
122
let ord = TestServer :: spawn_with_server_args ( & core, & [ ] , & [ ] ) ;
@@ -125,14 +125,45 @@ fn cannot_burn_inscriptions_on_large_utxos() {
125
125
126
126
core. mine_blocks ( 1 ) ;
127
127
128
- let ( inscription, _) = inscribe_with_postage ( & core, & ord, Some ( 10_001 ) ) ;
128
+ assert_eq ! (
129
+ CommandBuilder :: new( "wallet balance" )
130
+ . core( & core)
131
+ . ord( & ord)
132
+ . run_and_deserialize_output:: <Balance >( ) ,
133
+ Balance {
134
+ cardinal: 50 * COIN_VALUE ,
135
+ ordinal: 0 ,
136
+ runic: None ,
137
+ runes: None ,
138
+ total: 50 * COIN_VALUE ,
139
+ }
140
+ ) ;
141
+
142
+ let ( inscription, _) = inscribe_with_postage ( & core, & ord, Some ( 100_000 ) ) ;
129
143
130
144
CommandBuilder :: new ( format ! ( "wallet burn --fee-rate 1 {inscription}" , ) )
131
145
. core ( & core)
132
146
. ord ( & ord)
133
- . expected_stderr ( "error: Cannot burn inscription contained in UTXO exceeding 0.00010000 BTC\n " )
134
- . expected_exit_code ( 1 )
135
- . run_and_extract_stdout ( ) ;
147
+ . run_and_deserialize_output :: < Send > ( ) ;
148
+
149
+ core. mine_blocks ( 1 ) ;
150
+
151
+ // 4 block rewards - 1 burned sat
152
+ let expected_balance = 4 * 50 * COIN_VALUE - 1 ;
153
+
154
+ assert_eq ! (
155
+ CommandBuilder :: new( "wallet balance" )
156
+ . core( & core)
157
+ . ord( & ord)
158
+ . run_and_deserialize_output:: <Balance >( ) ,
159
+ Balance {
160
+ cardinal: expected_balance,
161
+ ordinal: 0 ,
162
+ runic: None ,
163
+ runes: None ,
164
+ total: expected_balance,
165
+ }
166
+ ) ;
136
167
}
137
168
138
169
#[ test]
@@ -191,30 +222,6 @@ fn cannot_burn_inscription_sharing_utxo_with_another_inscription() {
191
222
. run_and_extract_stdout ( ) ;
192
223
}
193
224
194
- #[ test]
195
- fn cannot_burn_with_excess_postage ( ) {
196
- let core = mockcore:: spawn ( ) ;
197
-
198
- let ord = TestServer :: spawn_with_server_args ( & core, & [ ] , & [ ] ) ;
199
-
200
- create_wallet ( & core, & ord) ;
201
-
202
- core. mine_blocks ( 1 ) ;
203
-
204
- let ( inscription, _) = inscribe ( & core, & ord) ;
205
-
206
- core. mine_blocks ( 1 ) ;
207
-
208
- CommandBuilder :: new ( format ! (
209
- "wallet burn --fee-rate 1 {inscription} --postage 10001sat" ,
210
- ) )
211
- . core ( & core)
212
- . ord ( & ord)
213
- . expected_stderr ( "error: Postage may not exceed 0.00010000 BTC\n " )
214
- . expected_exit_code ( 1 )
215
- . run_and_extract_stdout ( ) ;
216
- }
217
-
218
225
#[ test]
219
226
fn json_metadata_can_be_included_when_burning ( ) {
220
227
let core = mockcore:: spawn ( ) ;
@@ -258,7 +265,7 @@ fn json_metadata_can_be_included_when_burning() {
258
265
fee : 138 ,
259
266
id : inscription,
260
267
output : Some ( TxOut {
261
- value : Amount :: from_sat ( 9907 ) ,
268
+ value : Amount :: from_sat ( 1 ) ,
262
269
script_pubkey,
263
270
} ) ,
264
271
height : 3 ,
@@ -327,7 +334,7 @@ fn cbor_metadata_can_be_included_when_burning() {
327
334
fee : 138 ,
328
335
id : inscription,
329
336
output : Some ( TxOut {
330
- value : Amount :: from_sat ( 9907 ) ,
337
+ value : Amount :: from_sat ( 1 ) ,
331
338
script_pubkey,
332
339
} ) ,
333
340
height : 3 ,
0 commit comments