Skip to content

Commit 7b42139

Browse files
committed
Document all method below the debug namespace
1 parent b6c8170 commit 7b42139

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

contract_interface.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@ Debug-mode is a special VM option, where an additional set of debugging interfac
1818
symbols should be rejected.
1919

2020
The imports are available under the `debug` namespace:
21-
- `print(i64)`: print a number
22-
- `printMem(i32 offset, i32 length)`: print a string as pointed by `offset`
23-
- `printMemHex(i32 offset, i32 length)`: print a hex representation of the memory pointed to by `offset`
21+
- `print32(value: i32)` - print value
22+
- `print64(value: i64)` - print value
23+
- `printMem(offset: i32, len: i32)` - print memory segment as printable characters
24+
- `printMemHex(offset: i32, len: i32)` - print memory segment as hex
25+
- `printStorage(pathOffset: i32)` - print storage value as printable characters
26+
- `printStorageHex(pathOffset: i32)` - print storage value as hex
2427

2528
### Exports
2629

0 commit comments

Comments
 (0)