Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

payable.gno

0.28 Kb · 11 lines
 1package enckeys_v1
 2
 3import "chain/runtime/unsafe"
 4
 5// Only reached after the direct, frame-checked caller guard. Kept separate
 6// from crossing entrypoints so payment-envelope use is easy to audit.
 7func assertNoCoins() {
 8	if !unsafe.OriginSend().IsZero() {
 9		panic("enckeys: no coins")
10	}
11}