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:set actor addr after create actor #30

Merged
merged 2 commits into from
Jun 23, 2022
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
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ jobs:
- name: install tinygo
run: |
wget -q https://github.com/ipfs-force-community/tinygo/releases/download/fvm%400.0.1/ubuntu_20.04_linux.tar.gz
sudo tar -xvf ubuntu_20.04_linux.tar.gz -C /usr/local
wget -q https://github.com/ipfs-force-community/tinygo/releases/download/fvm%400.0.1/tinygo_ubuntu_20.04_linux.tar.gz
sudo tar -xvf tinygo_ubuntu_20.04_linux.tar.gz -C /usr/local
sudo chmod 777 /usr/local/tinygo/bin/*
- name: Build
Expand Down
1 change: 1 addition & 0 deletions examples/erc20/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ func (c *Erc20TokenClient) CreateActor(ctx context.Context, codeCid cid.Cid, exe
if err := result.UnmarshalCBOR(r); err != nil {
return nil, fmt.Errorf("error unmarshaling return value: %w", err)
}
c.actor = result.IDAddress
return &result, nil
}

Expand Down
1 change: 1 addition & 0 deletions examples/hellocontract/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ func (c *StateClient) CreateActor(ctx context.Context, codeCid cid.Cid, execPara
if err := result.UnmarshalCBOR(r); err != nil {
return nil, fmt.Errorf("error unmarshaling return value: %w", err)
}
c.actor = result.IDAddress
return &result, nil
}

Expand Down
1 change: 1 addition & 0 deletions gen/client_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ func (c *{{trimPackage .StateName}}Client) CreateActor(ctx context.Context, code
if err := result.UnmarshalCBOR(r); err != nil {
return nil, fmt.Errorf("error unmarshaling return value: %w", err)
}
c.actor = result.IDAddress
return &result, nil
}
Expand Down