fix: need to store state vars outside proofData loop
This commit is contained in:
parent
578cdba32e
commit
258031cb8f
|
@ -103,11 +103,12 @@ func (m *MediaMetadata) decodeProof(dec *msgpack.Decoder) error {
|
|||
return err
|
||||
}
|
||||
|
||||
for j := 0; j < len(proofData); j++ {
|
||||
var hashType int8
|
||||
var pubkey []byte
|
||||
var signature []byte
|
||||
|
||||
for j := 0; j < len(proofData); j++ {
|
||||
|
||||
switch j {
|
||||
case 0:
|
||||
sigType := proofData[j].(int8)
|
||||
|
|
Loading…
Reference in New Issue