Closed jmcardon closed 3 weeks ago
As of my last commit, it also fixes an annoying issue in the pact-5 repl that repl functions were actually going through the gas charging method, which when it actually charges gas, will essentially brick the repl.
The following is now possible:
pact>(env-gasmodel "table")
"Set gas model to table-based cost model"
pact>(env-gaslimit 1)
"Set gas limit to 1"
pact>(env-gas
env-gas env-gaslimit env-gaslog env-gasmodel env-gasmodel-fixed
pact>(+ "hello" "world")
(interactive):1:0: Gas limit "1"exceeded: 2
1 | (+ "hello" "world")
| ^^^^^^^^^^^^^^^^^^^
pact>(env-gas 0)
"Set gas to 0"
This PR separates the REPL into its own sub-library which helpful for fixing several issues:
pandoc
, which fixes in our docs issues where our docs in the repl look like the raw markdown docs.Before this PR:
After this PR:
PR checklist:
Additionally, please justify why you should or should not do the following: