diff --git a/pkg/onchain/datastore.go b/pkg/onchain/datastore.go index 373851bcd..9bfb3c06e 100644 --- a/pkg/onchain/datastore.go +++ b/pkg/onchain/datastore.go @@ -73,8 +73,8 @@ func getArgsKey() []byte { // getCoinsKey returns the key in the datastore for the amount of MAS to be sent to the deployed contract. func getCoinsKey() []byte { lengthPrefix := convert.U32ToBytes(byteArrayLengthPrefix) - coinsKeySuffix := []byte{1} + tempKey := append(getContractByteCodeKey(), lengthPrefix...) return append(tempKey, coinsKeySuffix...)