chg: event sig param for customPayload function
MODIFY
src/root/POSRootChainManager.ts
src/root/POSRootChainManager.ts
@@ -12,7 +12,7 @@ const ERC721_TRANSFER_EVENT_SIG = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c
const ERC721_WITHDRAW_BATCH_EVENT_SIG = '0xf871896b17e9cb7a64941c62c188a4f5c621b86800e3d15452ece01ce56073df'
const ERC1155_TRANSFER_SINGLE_EVENT_SIG = '0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62'
const ERC1155_TRANSFER_BATCH_EVENT_SIG = '0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb'
-const MESSAGE_SENT_EVENT_SIG = '8c5261668696ce22758910d05bab8f186d6eb247ceac2af2e82c7dc17669b036'
+const MESSAGE_SENT_EVENT_SIG = '0x8c5261668696ce22758910d05bab8f186d6eb247ceac2af2e82c7dc17669b036'
const web3 = new Web3()
const abiCoder: Web3['eth']['abi'] = web3.eth.abi
@@ -107,8 +107,8 @@ export default class POSRootChainManager extends ContractsBase {
return rootTunnelContract.methods.receiveMessage(payload)
}
- async customPayload(txHash: string) {
- const payload = await this.exitManager.buildPayloadForExitHermoine(txHash, MESSAGE_SENT_EVENT_SIG)
+ async customPayload(txHash: string, eventSig: string) {
+ const payload = await this.exitManager.buildPayloadForExitHermoine(txHash, eventSig)
return payload
}

chg: event sig param for customPayload function