CONTRACTS: Display contract answers on completely failed contracts (#2440)

This commit is contained in:
Adam Weeden
2026-01-08 16:21:52 -05:00
committed by GitHub
parent edf3d11b72
commit 7af9dca6bc
23 changed files with 221 additions and 48 deletions
+4
View File
@@ -82,6 +82,10 @@ export class CodingContract {
this.reward = reward;
}
getAnswer() {
return CodingContractTypes[this.type].getAnswer(this.state);
}
getData(): unknown {
const func = CodingContractTypes[this.type].getData;
return func ? func(this.state) : this.state;