Commit 1f6ab698 authored by Andreas Bigger's avatar Andreas Bigger

Remove unused preimageoracledata methods.

parent b6104508
...@@ -22,14 +22,9 @@ type PreimageOracleData struct { ...@@ -22,14 +22,9 @@ type PreimageOracleData struct {
OracleOffset uint32 OracleOffset uint32
} }
// GetType returns the type for the preimage oracle data.
func (p *PreimageOracleData) GetType() *big.Int {
return big.NewInt(int64(p.OracleKey[0]))
}
// GetIdent returns the ident for the preimage oracle data. // GetIdent returns the ident for the preimage oracle data.
func (p *PreimageOracleData) GetIdent() *big.Int { func (p *PreimageOracleData) GetIdent() *big.Int {
return big.NewInt(0).SetBytes(p.OracleKey[1:]) return new(big.Int).SetBytes(p.OracleKey[1:])
} }
// GetPreimageWithoutSize returns the preimage for the preimage oracle data. // GetPreimageWithoutSize returns the preimage for the preimage oracle data.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment