gno icon indicating copy to clipboard operation
gno copied to clipboard

Map package variable breaks the contract execution without exception

Open piux2 opened this issue 2 years ago • 0 comments

package maptest

var m = make(map[string]string)

func Deposit() string{
  m["0xABC"] = "10ugnot"
  return "Deposited"
}

The maptest contract does not return anything when Deposit() is called a second time. The contract seems to have stopped executing before the return but no panic or exception.

piux2 avatar Aug 04 '22 19:08 piux2