Skip to content

Commit

Permalink
fix(core/btc/rune): fix mint tx index err
Browse files Browse the repository at this point in the history
  • Loading branch information
Gkirito committed Apr 14, 2024
1 parent b1a49bb commit dd28b59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/btc/runes/runestone.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func Decipher(transaction *wire.MsgTx) (Artifact, error) {
if len(b) != 2 || b[0].BitLen() > 64 || b[1].BitLen() > 32 {
return nil
}
return &RuneId{Block: b[0].Uint64(), Tx: uint32(b[0].Uint64())}
return &RuneId{Block: b[0].Uint64(), Tx: uint32(b[1].Uint64())}
})

pointer := runestone.Take[uint32](runestone.Pointer, message.Fields, 1, func(b ...big.Int) *uint32 {
Expand Down

0 comments on commit dd28b59

Please sign in to comment.