Skip to content

Commit

Permalink
fix(adapter.cpp): rm check because restricts usability
Browse files Browse the repository at this point in the history
  • Loading branch information
gitmp01 committed Nov 6, 2024
1 parent f7a77cf commit c1ba0fa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions cpp/contracts/adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,6 @@ void adapter::settee(public_key pub_key, bytes attestation) {
require_auth(get_self());
pam::tee_pubkey _tee_pubkey(get_self(), get_self().value);

check(_tee_pubkey.exists(), "adapter contract not initialized");

_tee_pubkey.set(pam::tee{
.key = pub_key,
.attestation = attestation
Expand Down
8 changes: 0 additions & 8 deletions cpp/test/adapter-non-local.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,14 +413,6 @@ describe('Adapter EVM -> EOS testing', () => {
await expectToThrow(action, errors.AUTH_MISSING(adapter.account))
})

it('Should throw if adapter is not initialized', async () => {
const action = notInitAdapter.contract.actions
.settee([teePubKey, attestation])
.send(active(notInitAdapter.account))

await expectToThrow(action, errors.NOT_INITIALIZED)
})

it('Should set the tee pubKey and attestation correctly', async () => {
await adapter.contract.actions
.settee([teePubKey, attestation])
Expand Down

0 comments on commit c1ba0fa

Please sign in to comment.