Skip to content

Commit

Permalink
remove sig
Browse files Browse the repository at this point in the history
  • Loading branch information
rianhughes committed Jul 28, 2023
1 parent 37bd009 commit 9e7ec74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/deployAccount/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,15 @@ func main() {
fmt.Println("Initialised account with address:", account.AccountAddress)
fmt.Println("NOTE: Not using account to deployAccount as that method doesn't exist. Going to use provider for now.")

// NEXT: Sign transaction
// NEXT: construct tx correctly

tx := rpcv02.BroadcastedDeployAccountTransaction{
BroadcastedTxnCommonProperties: rpcv02.BroadcastedTxnCommonProperties{
Nonce: &felt.Zero, // Contract accounts start with nonce zero.
MaxFee: new(felt.Felt).SetUint64(1),
Type: rpcv02.TransactionType_DeployAccount,
Version: rpcv02.TransactionV1,
Signature: []*felt.Felt{&felt.Zero, &felt.Zero}, // todo : Should actually sign this?
Signature: []*felt.Felt{},
},
ClassHash: classHash,
ContractAddressSalt: pub,
Expand Down

0 comments on commit 9e7ec74

Please sign in to comment.