Skip to content

Commit

Permalink
Merge pull request #30 from ipfs-force-community/fix/set_actor_addr_a…
Browse files Browse the repository at this point in the history
…fter_create_actor

fix:set actor addr after create actor
  • Loading branch information
diwufeiwen committed Jun 23, 2022
2 parents e42fdd2 + e75d40b commit 00a8fa5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
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

0 comments on commit 00a8fa5

Please sign in to comment.