Skip to content

Commit

Permalink
fix header fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-fleming committed Aug 8, 2024
1 parent a9f1fc0 commit f576429
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/modules/ROOT/pages/api/testing.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ use openzeppelin_testing::common;

[.contract-item]
[[testing-common-panic_data_to_byte_array]]
===== `[.contract-item-name]#++panic_data_to_byte_array++#++(panic_data: Array<felt252>) → ByteArray++` [.item-kind]#function#
==== `[.contract-item-name]#++panic_data_to_byte_array++#++(panic_data: Array<felt252>) → ByteArray++` [.item-kind]#function#

Converts panic data into a string (`ByteArray`).

`panic_data` is expected to be a valid serialized `ByteArray` with an extra `felt252` at the beginning, which is the BYTE_ARRAY_MAGIC.

[.contract-item]
[[testing-common-to_base_16_string]]
===== `[.contract-item-name]#++to_base_16_string++#++(value: felt252) → ByteArray++` [.item-kind]#function#
==== `[.contract-item-name]#++to_base_16_string++#++(value: felt252) → ByteArray++` [.item-kind]#function#

Converts a `felt252` to a `base16` string padded to 66 characters (including the `0x` prefix).

Expand Down

0 comments on commit f576429

Please sign in to comment.