You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some operations such as random generation can depend on information determined by a mined block, that a transaction belongs to. However, since simply passing a Block object to IAction.Execute() may accidentally cause unpredictable dependencies in the future, the information should be limited to only what we actually need at present.
A type for a such information unit can be named Context or Environment, I think? @kijun@longfin Any suggestions are welcome.
IAction.Execute(Address, AddressStateMap)'s signature also should be changed like:
Some operations such as random generation can depend on information determined by a mined block, that a transaction belongs to. However, since simply passing a
Block
object toIAction.Execute()
may accidentally cause unpredictable dependencies in the future, the information should be limited to only what we actually need at present.A type for a such information unit can be named
Context
orEnvironment
, I think? @kijun @longfin Any suggestions are welcome.IAction.Execute(Address, AddressStateMap)
's signature also should be changed like:The
IContext
interface would look like at first:The text was updated successfully, but these errors were encountered: