Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eth contract: replace error with other var names #219

Merged
merged 1 commit into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions chain-signatures/contract-eth/contracts/ChainSignatures.sol
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ contract ChainSignatures is AccessControl {

struct ErrorResponse {
bytes32 requestId;
string error;
string errorMessage;
}

uint256 signatureDeposit;
Expand Down Expand Up @@ -148,7 +148,7 @@ contract ChainSignatures is AccessControl {
emit SignatureError(
_errors[i].requestId,
msg.sender,
_errors[i].error
_errors[i].errorMessage
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion chain-signatures/contract-eth/test/ChainSignatures.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ describe("ChainSignatures", function () {
const requestId = ethers.keccak256(encoded);

const errorMessage = "sorry";
const tx2 = await chainSignatures.connect(addr2).respondError([{ requestId: requestId, error: errorMessage }]);
const tx2 = await chainSignatures.connect(addr2).respondError([{ requestId: requestId, errorMessage: errorMessage }]);
const receipt2 = await tx2.wait();
const responseEvent = receipt2.logs.find(log =>
chainSignatures.interface.parseLog(log)?.name === "SignatureError"
Expand Down
Loading