Skip to content

Conversation

@taylorferran
Copy link
Contributor

This let's the contract work with multiple signatures and gives more details to the user on the contract.

RaekwonIII
RaekwonIII previously approved these changes Jun 10, 2025
@taylorferran taylorferran force-pushed the bapp-contract-template branch from 7e856eb to d8c69ea Compare June 12, 2025 07:59
@RaekwonIII RaekwonIII enabled auto-merge June 13, 2025 08:59
allTaskHashes[latestTaskNum] = taskHash;
allTaskHashes[nextTaskNumber] = taskHash;
latestTaskNum = nextTaskNumber;
nextTaskNumber = nextTaskNumber + 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this could probably use ++ but that's ok for the example

mapping(uint32 => bytes32) public allTaskHashes;
mapping(address => mapping(uint32 => bytes)) public allTaskResponses;
uint32 public latestTaskNum;
uint32 public latestTaskNum; // Tracks the current task
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would consider removing comments cause they are redundant. But it's ok.

bytes[] calldata signatures,
address[] calldata signers,
uint32 strategyId
uint32[] calldata strategyIds
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the future these 3 params could go in a struct and then you would pass an array of these structs. So you don't have to check the length.

revert InvalidSigner();
}
} else {
// if strategy has no signer set, check the signer is the owner of the strategy
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what happens here in the else if if (strategySignerAddress != signers[i])?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants