You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/protocol_library.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@ Native account procedures can be used to write to storage, add or remove assets
67
67
|`set_item`| Sets an item in the native account storage.<br/><br/>**Inputs:**`[slot_id_suffix, slot_id_prefix, VALUE]`<br/>**Outputs:**`[OLD_VALUE]`| Native & Account |
68
68
|`set_map_item`| Sets VALUE under the specified KEY within the map contained in the given native account storage slot.<br/><br/>**Inputs:**`[slot_id_suffix, slot_id_prefix, KEY, VALUE]`<br/>**Outputs:**`[OLD_VALUE]`| Native & Account |
69
69
|`add_asset`| Adds the specified asset to the vault. For fungible assets, returns the total after addition.<br/><br/>**Inputs:**`[ASSET_KEY, ASSET_VALUE]`<br/>**Outputs:**`[ASSET_VALUE']`| Native & Account |
70
-
|`remove_asset`| Removes the specified asset from the vault.<br/><br/>**Inputs:**`[ASSET_KEY, ASSET_VALUE]`<br/>**Outputs:**`[ASSET_VALUE]`| Native & Account |
70
+
|`remove_asset`| Removes the specified asset from the vault and returns the remaining asset value.<br/><br/>**Inputs:**`[ASSET_KEY, ASSET_VALUE]`<br/>**Outputs:**`[REMAINING_ASSET_VALUE]`| Native & Account |
71
71
|`was_procedure_called`| Returns 1 if a native account procedure was called during transaction execution, and 0 otherwise.<br/><br/>**Inputs:**`[PROC_ROOT]`<br/>**Outputs:**`[was_called]`| Any |
72
72
73
73
## Active Note Procedures (`miden::protocol::active_note`)
@@ -153,7 +153,7 @@ Faucet procedures allow reading and writing to faucet accounts to mint and burn
153
153
|`create_fungible_asset`| Creates a fungible asset for the faucet the transaction is being executed against.<br/><br/>**Inputs:**`[amount]`<br/>**Outputs:**`[ASSET_KEY, ASSET_VALUE]`| Faucet |
154
154
|`create_non_fungible_asset`| Creates a non-fungible asset for the faucet the transaction is being executed against.<br/><br/>**Inputs:**`[DATA_HASH]`<br/>**Outputs:**`[ASSET_KEY, ASSET_VALUE]`| Faucet |
155
155
|`mint`| Mint an asset from the faucet the transaction is being executed against.<br/><br/>**Inputs:**`[ASSET_KEY, ASSET_VALUE]`<br/>**Outputs:**`[NEW_ASSET_VALUE]`| Native & Account & Faucet |
156
-
|`burn`| Burn an asset from the faucet the transaction is being executed against.<br/><br/>**Inputs:**`[ASSET_KEY, ASSET_VALUE]`<br/>**Outputs:**`[ASSET_VALUE]`| Native & Account & Faucet |
156
+
|`burn`| Burn an asset from the faucet the transaction is being executed against.<br/><br/>**Inputs:**`[ASSET_KEY, ASSET_VALUE]`<br/>**Outputs:**`[]`| Native & Account & Faucet |
157
157
|`has_callbacks`| Returns whether the active account defines callbacks.<br/><br/>**Inputs:**`[]`<br/>**Outputs:**`[has_callbacks]`| Any |
0 commit comments