Skip to content

Commit

Permalink
[nim] Add completeStruct pragma to structs (ethereum#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
cheatfate authored Jun 13, 2024
1 parent f2f7ad3 commit b175a27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bindings/nim/kzg_abi.nim
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,19 @@ type

# A basic blob data.
KzgBlob* {.importc: "Blob",
header: "c_kzg_4844.h".} = object
header: "c_kzg_4844.h", completeStruct.} = object
bytes*: array[KzgBlobSize, uint8]

# An array of 48 bytes. Represents an untrusted
# (potentially invalid) commitment/proof.
KzgBytes48* {.importc: "Bytes48",
header: "c_kzg_4844.h".} = object
header: "c_kzg_4844.h", completeStruct.} = object
bytes*: array[48, uint8]

# An array of 32 bytes. Represents an untrusted
# (potentially invalid) field element.
KzgBytes32* {.importc: "Bytes32",
header: "c_kzg_4844.h".} = object
header: "c_kzg_4844.h", completeStruct.} = object
bytes*: array[32, uint8]

# A trusted (valid) KZG commitment.
Expand Down

0 comments on commit b175a27

Please sign in to comment.