Skip to content

Commit

Permalink
Merge pull request #174 from Syndica/ink/guarantee-layouts2
Browse files Browse the repository at this point in the history
fix(core): Make `core.Hash` extern to guarantee its layout
  • Loading branch information
0xNineteen authored Jun 12, 2024
2 parents c8b88e0 + 596f1f4 commit 7ecf82f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/hash.zig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const base58 = @import("base58-zig");

pub const HASH_SIZE: usize = 32;

pub const Hash = struct {
pub const Hash = extern struct {
data: [HASH_SIZE]u8,

pub fn default() Hash {
Expand Down

0 comments on commit 7ecf82f

Please sign in to comment.