Skip to content

Commit

Permalink
refactor(as-sdk): rename getAllReveals to getUnfilteredReveals
Browse files Browse the repository at this point in the history
  • Loading branch information
FranklinWaller committed Sep 11, 2024
1 parent 2749eb2 commit 8adb00f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libs/as-sdk-integration-tests/assembly/tally.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Bytes, OracleProgram, Process, Tally } from "../../as-sdk/assembly";

export class TestTallyVmReveals extends OracleProgram {
tally(): void {
const reveals = Tally.getAllReveals();
const reveals = Tally.getUnfilteredReveals();

Process.success(Bytes.fromUtf8String(JSON.stringify(reveals)));
}
Expand Down
4 changes: 2 additions & 2 deletions libs/as-sdk/assembly/tally.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default class Tally {
* @see {@link getReveals}
* @returns All reveals from the Oracle Program execution phase.
*/
static getAllReveals(): RevealResult[] {
static getUnfilteredReveals(): RevealResult[] {
const encodedReveals = Process.args().at(REVEALS_ARGUMENT_POSITION);
const reveals = JSON.parse<RevealBody[]>(encodedReveals);

Expand Down Expand Up @@ -66,7 +66,7 @@ export default class Tally {
* @returns The reveals which were in consensus
*/
static getReveals(): RevealResult[] {
const revealResults = Tally.getAllReveals();
const revealResults = Tally.getUnfilteredReveals();

return revealResults.filter(
(revealResult) => revealResult.in_consensus === 0,
Expand Down

0 comments on commit 8adb00f

Please sign in to comment.