Skip to content

Commit

Permalink
fix duplicated encodeFunctionCall
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniRumpi committed Jun 27, 2024
1 parent 725782c commit eacf92e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/txFactory/identityManagerTransactionFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eacf92e

Please sign in to comment.