Skip to content

Commit

Permalink
Merge pull request #196 from alastria/fix/duplicateEncode
Browse files Browse the repository at this point in the history
fix duplicated encodeFunctionCall
  • Loading branch information
rober12 authored Nov 11, 2024
2 parents 62e6867 + eacf92e commit 8f703c4
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 8f703c4

Please sign in to comment.