fix: need to store state vars outside proofData loop
This commit is contained in:
parent
280e5b1d71
commit
6689c95eea
|
@ -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