Skip to content

Commit

Permalink
Merge pull request #654 from zama-ai/allowTransientEbytes
Browse files Browse the repository at this point in the history
Allow transient ebytes
  • Loading branch information
jatZama authored Dec 14, 2024
2 parents ad6bfac + 7a312e8 commit c90044b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 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
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fhevm",
"description": "A Solidity library for interacting with the Zama Blockchain",
"version": "0.6.1",
"version": "0.6.2",
"engines": {
"node": ">=20.0.0"
},
Expand Down

0 comments on commit c90044b

Please sign in to comment.