Skip to content

Commit

Permalink
Fix copy-pasta typo (#27)
Browse files Browse the repository at this point in the history
Redo outdate PR #24
  • Loading branch information
verabehr authored Nov 15, 2023
1 parent c860ccb commit b8898c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/Compass.vy
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b8898c3

Please sign in to comment.