Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Commit

Permalink
fix(go-sdk): resolved errors in examples for Wallet.requestExecute
Browse files Browse the repository at this point in the history
…method
  • Loading branch information
danijelTxFusion authored and idea404 committed Nov 13, 2023
1 parent a27b3f1 commit 4e997c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/api/go/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ head:

While most of the existing SDKs should work out of the box, deploying smart contracts or using unique zkSync features, such as paying fees in other tokens, requires providing additional fields to those that Ethereum transactions have by default.

To provide easy access to all the features of zkSync Era, the `zksync2` Go SDK was created.
To provide easy access to all the features of zkSync Era, the `zksync2-go` Go SDK was created.

## Contents

Expand Down
8 changes: 4 additions & 4 deletions docs/api/go/accounts.md
Original file line number Diff line number Diff line change
Expand Up @@ -550,9 +550,9 @@ RequestExecute(auth *TransactOpts, tx RequestExecuteTransaction) (*types.Transac
#### Example

```go
to := common.HexToAddress("<Receipt address>")
contractAddress := common.HexToAddress("<Contract address>")
requestExecuteTx, err := wallet.RequestExecute(nil, accounts.RequestExecuteTransaction{
ContractAddress: to,
ContractAddress: contractAddress,
L2Value: big.NewInt(7_000_000_000),
L2GasLimit: big.NewInt(90_000),
GasPerPubdataByte: utils.RequiredL1ToL2GasPerPubdataLimit,
Expand Down Expand Up @@ -582,9 +582,9 @@ EstimateGasRequestExecute(ctx context.Context, msg RequestExecuteCallMsg) (uint6
#### Example

```go
to := common.HexToAddress("<Receipt address>")
contractAddress := common.HexToAddress("<Contract address>")
gas, err := wallet.EstimateGasRequestExecute(context.Background(), accounts.RequestExecuteCallMsg{
ContractAddress: to,
ContractAddress: contractAddress,
L2Value: big.NewInt(7_000_000_000),
L2GasLimit: big.NewInt(90_000),
GasPerPubdataByte: utils.RequiredL1ToL2GasPerPubdataLimit,
Expand Down

0 comments on commit 4e997c7

Please sign in to comment.