From 7b59c42f5d2e17be5a20e7c3e8ce1a1430b9fb95 Mon Sep 17 00:00:00 2001 From: Nick Winter Date: Thu, 19 Jun 2014 15:41:35 -0700 Subject: [PATCH] Added stupid method argument compilation info for bid(blockNumber) to various Aether compilation steps. --- app/lib/simulator/Simulator.coffee | 2 ++ app/views/play/common/ladder_submission_view.coffee | 1 + scripts/transpile.coffee | 3 ++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/lib/simulator/Simulator.coffee b/app/lib/simulator/Simulator.coffee index af143ff3d..baa8ba6ee 100644 --- a/app/lib/simulator/Simulator.coffee +++ b/app/lib/simulator/Simulator.coffee @@ -400,6 +400,8 @@ module.exports = class Simulator extends CocoClass executionLimit: 1 * 1000 * 1000 if methodName is 'hear' aetherOptions.functionParameters = ['speaker', 'message', 'data'] + if methodName is 'bid' + aetherOptions.functionParameters = ['blockNumber'] #console.log "creating aether with options", aetherOptions return new Aether aetherOptions diff --git a/app/views/play/common/ladder_submission_view.coffee b/app/views/play/common/ladder_submission_view.coffee index 02eac35bd..3a752c20f 100644 --- a/app/views/play/common/ladder_submission_view.coffee +++ b/app/views/play/common/ladder_submission_view.coffee @@ -92,6 +92,7 @@ module.exports = class LadderSubmissionView extends CocoView includeFlow: false executionLimit: 1 * 1000 * 1000 if spellID is "hear" then aetherOptions["functionParameters"] = ["speaker","message","data"] + if spellID is "bid" then aetherOptions["functionParameters"] = ["blockNumber"] aether = new Aether aetherOptions transpiledCode[thang][spellID] = aether.transpile spell diff --git a/scripts/transpile.coffee b/scripts/transpile.coffee index fdb3c65bf..538b9c1d0 100644 --- a/scripts/transpile.coffee +++ b/scripts/transpile.coffee @@ -41,6 +41,7 @@ transpileLevelSession = (sessionID, cb) -> includeFlow: false executionLimit: 1 * 1000 * 1000 if spellID is "hear" then aetherOptions["functionParameters"] = ["speaker","message","data"] + if spellID is "bid" then aetherOptions["functionParameters"] = ["blockNumber"] aether = new Aether aetherOptions transpiledCode[thang][spellID] = aether.transpile spell @@ -83,4 +84,4 @@ transpileLadderSessions = -> throw err if err serverSetup.connectToDatabase() -transpileLadderSessions() \ No newline at end of file +transpileLadderSessions()