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