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

assert.gno

0.33 Kb · 10 lines
 1package common
 2
 3// AssertIsNotHandleNativeCoin validates that no native coins were sent with the transaction.
 4//
 5// Use this when a function should only work with GRC20 tokens and not accept native coins.
 6func AssertIsNotHandleNativeCoin() {
 7	if err := getImplementation().ValidateNotHandleNativeCoin(); err != nil {
 8		panic(err)
 9	}
10}