Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix githubaction, goodbye onchain.com #1441

Merged
merged 2 commits into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion p2pserver/connect_controller/connect_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func TestCheckReserveWithDomain(t *testing.T) {
a := assert.New(t)
// this domain only have one A record, so we can assure two lookup below return the same IP
// other domain may fail the test sometimes
dname := "www.onchain.com"
dname := "ont.io"

gips, err := net.LookupHost(dname)
a.Nil(err, "fail to get domain record")
Expand Down
4 changes: 2 additions & 2 deletions smartcontract/service/native/testsuite/ont_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,15 +172,15 @@ func ontTransferV2(native *native.NativeService, from, to common.Address, value
}

func ontTransferFrom(native *native.NativeService, sender, from, to common.Address, value uint64) error {
native.Tx.SignedAddr = append(native.Tx.SignedAddr, from)
native.Tx.SignedAddr = append(native.Tx.SignedAddr, sender)
state := &ont.TransferFrom{Sender: sender, TransferState: ont.TransferState{From: from, To: to, Value: value}}
native.Input = common.SerializeToBytes(state)
_, err := ont.OntTransferFrom(native)
return err
}

func ontTransferFromV2(native *native.NativeService, sender, from, to common.Address, value uint64) error {
native.Tx.SignedAddr = append(native.Tx.SignedAddr, from)
native.Tx.SignedAddr = append(native.Tx.SignedAddr, sender)
state := &ont.TransferFromStateV2{Sender: sender, TransferStateV2: ont.TransferStateV2{From: from, To: to, Value: states.NativeTokenBalance{Balance: bigint.New(value)}}}
native.Input = common.SerializeToBytes(state)
_, err := ont.OntTransferFromV2(native)
Expand Down
Loading