From eacf92e7b2b80c8dfdd2c21e74bdae72eac65490 Mon Sep 17 00:00:00 2001 From: DaniRumpi Date: Thu, 27 Jun 2024 11:00:00 +0200 Subject: [PATCH] fix duplicated encodeFunctionCall --- src/txFactory/identityManagerTransactionFactory.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/txFactory/identityManagerTransactionFactory.ts b/src/txFactory/identityManagerTransactionFactory.ts index 8627c36..18f2655 100644 --- a/src/txFactory/identityManagerTransactionFactory.ts +++ b/src/txFactory/identityManagerTransactionFactory.ts @@ -65,13 +65,9 @@ export function createAlastriaIdentity(web3, publicKey) { export function createAlastriaIdentityHash(web3, publicKeyHash) { const transaction = Object.assign({}, config.basicTransaction) transaction.gasLimit = 600000 - const publicKeyCallData = web3.eth.abi.encodeFunctionCall( - config.contractsAbi.AlastriaPublicKeyRegistry.addPublicKey, - [publicKeyHash] - ) transaction.data = web3.eth.abi.encodeFunctionCall( config.contractsAbi.AlastriaIdentityManager.createAlastriaIdentity, - [publicKeyCallData] + [publicKeyHash] ) transaction.to = config.alastriaIdentityManager return transaction