mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-21 18:37:26 +08:00
14 lines
253 B
Go
14 lines
253 B
Go
package protobufs
|
|
|
|
import "math/big"
|
|
|
|
func (t *TokenRequest) Priority() *big.Int {
|
|
switch p := t.Request.(type) {
|
|
case *TokenRequest_Mint:
|
|
if len(p.Mint.Proofs) >= 3 {
|
|
return new(big.Int).SetBytes(p.Mint.Proofs[2])
|
|
}
|
|
}
|
|
return big.NewInt(0)
|
|
}
|