Added stupid method argument compilation info for bid(blockNumber) to various Aether compilation steps.

This commit is contained in:
Nick Winter 2014-06-19 15:41:35 -07:00
parent c090103126
commit 7b59c42f5d
3 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -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

View file

@ -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()
transpileLadderSessions()