[#1689] morph/client: Remove notary hash field from notaryInfo
All checks were successful
Vulncheck / Vulncheck (push) Successful in 1m10s
Pre-commit hooks / Pre-commit (push) Successful in 1m35s
Build / Build Components (push) Successful in 1m58s
Tests and linters / Run gofumpt (push) Successful in 3m4s
Tests and linters / Lint (push) Successful in 3m25s
Tests and linters / Staticcheck (push) Successful in 3m36s
Tests and linters / Tests (push) Successful in 3m50s
Tests and linters / gopls check (push) Successful in 3m50s
Tests and linters / Tests with -race (push) Successful in 3m55s
OCI image / Build container images (push) Successful in 5m4s
All checks were successful
Vulncheck / Vulncheck (push) Successful in 1m10s
Pre-commit hooks / Pre-commit (push) Successful in 1m35s
Build / Build Components (push) Successful in 1m58s
Tests and linters / Run gofumpt (push) Successful in 3m4s
Tests and linters / Lint (push) Successful in 3m25s
Tests and linters / Staticcheck (push) Successful in 3m36s
Tests and linters / Tests (push) Successful in 3m50s
Tests and linters / gopls check (push) Successful in 3m50s
Tests and linters / Tests with -race (push) Successful in 3m55s
OCI image / Build container images (push) Successful in 5m4s
Notary contract hash is constant. Change-Id: I7935580acbced5c9d567875ea75daa57cc259a3c Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
3bb1fb744a
commit
0a9d139e20
1 changed files with 2 additions and 4 deletions
|
@ -38,8 +38,7 @@ type (
|
|||
|
||||
alphabetSource AlphabetKeys // source of alphabet node keys to prepare witness
|
||||
|
||||
notary util.Uint160
|
||||
proxy util.Uint160
|
||||
proxy util.Uint160
|
||||
}
|
||||
|
||||
notaryCfg struct {
|
||||
|
@ -102,7 +101,6 @@ func (c *Client) EnableNotarySupport(opts ...NotaryOption) error {
|
|||
txValidTime: cfg.txValidTime,
|
||||
roundTime: cfg.roundTime,
|
||||
alphabetSource: cfg.alphabetSource,
|
||||
notary: notary.Hash,
|
||||
}
|
||||
|
||||
c.notary = notaryCfg
|
||||
|
@ -188,7 +186,7 @@ func (c *Client) DepositEndlessNotary(ctx context.Context, amount fixedn.Fixed8)
|
|||
func (c *Client) depositNotary(ctx context.Context, amount fixedn.Fixed8, till int64) (util.Uint256, uint32, error) {
|
||||
txHash, vub, err := c.gasToken.Transfer(
|
||||
c.accAddr,
|
||||
c.notary.notary,
|
||||
notary.Hash,
|
||||
big.NewInt(int64(amount)),
|
||||
[]any{c.acc.PrivateKey().GetScriptHash(), till})
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue