z3_realm_crash_fast_filetest.gno
0.64 Kb · 19 lines
1// PKGPATH: gno.land/r/g1ftppd2jpfx0p8cy08th4u9whwvqcpychhlad28/z3a
2
3// A realm bot that crashes (to dodge a loss) makes the one-transaction match
4// fail as a whole: Gno doesn't let the arena catch a crash in another realm.
5// On chain this cancels the transaction, which is why step mode exists.
6package z3a
7
8import (
9 "gno.land/r/g1ftppd2jpfx0p8cy08th4u9whwvqcpychhlad28/arena"
10 _ "gno.land/r/g1ftppd2jpfx0p8cy08th4u9whwvqcpychhlad28/bots/starter"
11 _ "gno.land/r/g1ftppd2jpfx0p8cy08th4u9whwvqcpychhlad28/testbots/crasher"
12)
13
14func main(cur realm) {
15 println(arena.Fight(cross(cur), "brawler", "realm-crasher"))
16}
17
18// Error:
19// realm bot crashes on purpose