Skip to content

Commit

Permalink
fix: attestator
Browse files Browse the repository at this point in the history
  • Loading branch information
envin3 committed Nov 18, 2024
1 parent 394446a commit 693e444
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions solidity/tools/attestator.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@ const getMetadata = (_event, _options) => {
const privateKey = fs.readFileSync(_options.privateKeyFile).toString()
const ea = new ProofcastEventAttestator({
version: Versions.V1,
protocolId: Protocols.Evm,
protocolId: _options.protocolId,
chainId: _options.chainId,
privateKey,
})

_event.blockHash = _options.blockHash
_event.transactionHash = _options.txHash

Expand Down Expand Up @@ -55,7 +54,7 @@ program
.option(
'-c --chain-id <number>',
'the origin chain id of the event',
Number,
String,
Chains(Protocols.Eos).Mainnet,
)
.option(
Expand All @@ -71,9 +70,12 @@ program
{
account,
action,
data,
data: JSON.parse(data),
},
options,
{
...options,
protocolId: Protocols.Eos,
}
),
)

Expand Down Expand Up @@ -108,11 +110,14 @@ program
{
address,
topics,
data,
data: JSON.parse(data),
blockHash: options.blockHash,
transactionHash: options.txHash,
},
options,
{
...options,
protocolId: Protocols.Evm,
}
),
)

Expand Down

0 comments on commit 693e444

Please sign in to comment.