Skip to content

Commit

Permalink
feat: add allowTransient for ebytes64 and ebytes128
Browse files Browse the repository at this point in the history
  • Loading branch information
jatZama committed Dec 14, 2024
1 parent ad6bfac commit 770ebad
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions codegen/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,14 @@ function tfheAclMethods(supportedBits: number[]): string {
Impl.allowTransient(eaddress.unwrap(value), account);
}
function allowTransient(ebytes64 value, address account) internal {
Impl.allowTransient(ebytes64.unwrap(value), account);
}
function allowTransient(ebytes128 value, address account) internal {
Impl.allowTransient(ebytes128.unwrap(value), account);
}
function allowTransient(ebytes256 value, address account) internal {
Impl.allowTransient(ebytes256.unwrap(value), account);
}
Expand Down
8 changes: 8 additions & 0 deletions lib/TFHE.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11033,6 +11033,14 @@ library TFHE {
Impl.allowTransient(eaddress.unwrap(value), account);
}

function allowTransient(ebytes64 value, address account) internal {
Impl.allowTransient(ebytes64.unwrap(value), account);
}

function allowTransient(ebytes128 value, address account) internal {
Impl.allowTransient(ebytes128.unwrap(value), account);
}

function allowTransient(ebytes256 value, address account) internal {
Impl.allowTransient(ebytes256.unwrap(value), account);
}
Expand Down

0 comments on commit 770ebad

Please sign in to comment.