From 04d3127d7663c897321c63fa8bd772e1004542cb Mon Sep 17 00:00:00 2001 From: michaeldiamant Date: Thu, 15 Dec 2022 17:01:46 -0500 Subject: [PATCH] go-algorand-sdk: Update SignLogicsigTransaction examples for v2.0.0 --- docs/get-details/dapps/smart-contracts/frontend/smartsigs.md | 4 ++-- examples/smart_contracts/v2/go/accountDelegation.go | 2 +- examples/smart_contracts/v2/go/contractAccount.go | 2 +- examples/smart_contracts/v2/go/dryrunDebugging.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/get-details/dapps/smart-contracts/frontend/smartsigs.md b/docs/get-details/dapps/smart-contracts/frontend/smartsigs.md index 7c1ec0f11..cb362a605 100644 --- a/docs/get-details/dapps/smart-contracts/frontend/smartsigs.md +++ b/docs/get-details/dapps/smart-contracts/frontend/smartsigs.md @@ -767,7 +767,7 @@ int 123 lastValidRound := uint64(txParams.LastRoundValid) tx, err := transaction.MakePaymentTxnWithFlatFee( addr, receiver, minFee, amount, firstValidRound, lastValidRound, note, "", genID, genHash) - txID, stx, err := crypto.SignLogicsigTransaction(lsig, tx) + txID, stx, err := crypto.SignLogicSigTransaction(lsig, tx) if err != nil { fmt.Printf("Signing failed with %v", err) return @@ -1247,7 +1247,7 @@ The following example illustrates signing a transaction with a created logic sig tx, err := transaction.MakePaymentTxnWithFlatFee( sender, receiver, fee, amount, firstValidRound, lastValidRound, note, "", genID, genHash ) - txID, stx, err := crypto.SignLogicsigTransaction(lsig, tx) + txID, stx, err := crypto.SignLogicSigTransaction(lsig, tx) if err != nil { fmt.Printf("Signing failed with %v", err) return diff --git a/examples/smart_contracts/v2/go/accountDelegation.go b/examples/smart_contracts/v2/go/accountDelegation.go index 54ecbe1cd..5bd57da39 100644 --- a/examples/smart_contracts/v2/go/accountDelegation.go +++ b/examples/smart_contracts/v2/go/accountDelegation.go @@ -113,7 +113,7 @@ func main() { sender, receiver, fee, amount, firstValidRound, lastValidRound, note, "", genID, genHash ) - txID, stx, err := crypto.SignLogicsigTransaction(lsig, tx) + txID, stx, err := crypto.SignLogicSigTransaction(lsig, tx) if err != nil { fmt.Printf("Signing failed with %v", err) return diff --git a/examples/smart_contracts/v2/go/contractAccount.go b/examples/smart_contracts/v2/go/contractAccount.go index 3f9a5e895..c77732452 100644 --- a/examples/smart_contracts/v2/go/contractAccount.go +++ b/examples/smart_contracts/v2/go/contractAccount.go @@ -104,7 +104,7 @@ func main() { tx, err := transaction.MakePaymentTxnWithFlatFee( addr, receiver, minFee, amount, firstValidRound, lastValidRound, note, "", genID, genHash) - txID, stx, err := crypto.SignLogicsigTransaction(lsig, tx) + txID, stx, err := crypto.SignLogicSigTransaction(lsig, tx) if err != nil { fmt.Printf("Signing failed with %v", err) return diff --git a/examples/smart_contracts/v2/go/dryrunDebugging.go b/examples/smart_contracts/v2/go/dryrunDebugging.go index a102e7f02..762b595a3 100644 --- a/examples/smart_contracts/v2/go/dryrunDebugging.go +++ b/examples/smart_contracts/v2/go/dryrunDebugging.go @@ -159,7 +159,7 @@ func main() { sender, receiver, fee, amount, firstValidRound, lastValidRound, note, "", genID, genHash ) - txID, stx, err := crypto.SignLogicsigTransaction(lsig, tx) + txID, stx, err := crypto.SignLogicSigTransaction(lsig, tx) if err != nil { fmt.Printf("Signing failed with %v", err) return