BYTENAI

Recorded run

A transfer the language refuses

The compiler was run with an amount larger than the account holds. The require phase fails, nothing is written, and the process exits 3.

Recorded — smurf run genesis.smurf --do transfer --arg amount=1e9

The source

The source for this fixture is not in this checkout.

The refusal

One sentence on stderr, one exit code, and no event row: a refusal is not a transaction that half-happened.

stderr, verbatimsh
smurf run genesis.smurf --do transfer --arg amount=1e9
refused: precondition: require #2 is false: source.energy >= amount
exit 3

The same transition, with an amount that fits

stdout, verbatimsh
smurf run genesis.smurf --do transfer --arg amount=10
space Genesis
  genesis root=dcb9f8d48daf2cc728db2ddf53da9b35783cd616ddd02b6cab921546e81396b5
  t=1 source.energy = f64:90.0
  t=1 target.energy = f64:10.0
  root=f99950eab83d71d1a239f0981249a185e457f663cf31fc5d40ca9c579b8d6d3d
exit 0

Replay a transferThe language