rpc: fix Client's GetOraclePrice
This commit is contained in:
parent
92282c70cb
commit
49e228ddf8
2 changed files with 16 additions and 1 deletions
|
@ -16,7 +16,7 @@ import (
|
|||
|
||||
// GetOraclePrice invokes `getPrice` method on a native Oracle contract.
|
||||
func (c *Client) GetOraclePrice() (int64, error) {
|
||||
oracleHash, err := c.GetNativeContractHash(nativenames.Notary)
|
||||
oracleHash, err := c.GetNativeContractHash(nativenames.Oracle)
|
||||
if err != nil {
|
||||
return 0, fmt.Errorf("failed to get native Oracle hash: %w", err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue