From b8898c3a26566fb0beeb698a6c35aaf61e09658e Mon Sep 17 00:00:00 2001 From: verabehr Date: Wed, 15 Nov 2023 11:22:46 -0500 Subject: [PATCH] Fix copy-pasta typo (#27) Redo outdate PR https://github.com/palomachain/compass-evm/pull/24 --- contracts/Compass.vy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/Compass.vy b/contracts/Compass.vy index 55c4b5e..d4cf8c4 100644 --- a/contracts/Compass.vy +++ b/contracts/Compass.vy @@ -198,7 +198,7 @@ def submit_batch(consensus: Consensus, token: address, args: TokenSendArgs, batc assert length == len(args.amount), "Unmatched Params" # check if the supplied current validator set matches the saved checkpoint assert self.last_checkpoint == self.make_checkpoint(consensus.valset), "Incorrect Checkpoint" - # signing data is keccak256 hash of abi_encoded logic_call(args, batch_id, compass_id, deadline) + # signing data is keccak256 hash of abi_encoded batch_call(args, batch_id, compass_id, deadline) args_hash: bytes32 = keccak256(_abi_encode(token, args, batch_id, compass_id, deadline, method_id=method_id("batch_call(address,(address[],uint256[]),uint256,bytes32,uint256)"))) # check if enough validators signed args_hash self.check_validator_signatures(consensus, args_hash)