Skip to content

Commit

Permalink
Merge pull request #34 from icon-project/chore/post-condition-allow
Browse files Browse the repository at this point in the history
chore: change PostConditionMode to Allow
  • Loading branch information
CyrusVorwald authored Nov 10, 2024
2 parents 7a09394 + bf2141d commit ad98a9b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/transaction/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func MakeSTXTokenTransfer(

signer := deriveSigner(senderKey)

tx, err := NewTokenTransferTransaction(recipient, amount.Uint64(), memo, network.Version, network.ChainID, signer, 0, 0, stacks.AnchorModeOnChainOnly, stacks.PostConditionModeDeny)
tx, err := NewTokenTransferTransaction(recipient, amount.Uint64(), memo, network.Version, network.ChainID, signer, 0, 0, stacks.AnchorModeOnChainOnly, stacks.PostConditionModeAllow)
if err != nil {
return nil, &CustomError{Message: "Failed to create transaction", Err: err}
}
Expand Down Expand Up @@ -245,7 +245,7 @@ func MakeContractDeploy(
0,
0,
stacks.AnchorModeOnChainOnly,
stacks.PostConditionModeDeny,
stacks.PostConditionModeAllow,
)
if err != nil {
return nil, &CustomError{Message: "Failed to create transaction", Err: err}
Expand Down Expand Up @@ -276,7 +276,7 @@ func MakeContractCall(

signer := deriveSigner(senderKey)

tx, err := NewContractCallTransaction(contractAddress, contractName, functionName, functionArgs, network.Version, network.ChainID, signer, 0, 0, stacks.AnchorModeOnChainOnly, stacks.PostConditionModeDeny)
tx, err := NewContractCallTransaction(contractAddress, contractName, functionName, functionArgs, network.Version, network.ChainID, signer, 0, 0, stacks.AnchorModeOnChainOnly, stacks.PostConditionModeAllow)
if err != nil {
return nil, &CustomError{Message: "Failed to create transaction", Err: err}
}
Expand Down

0 comments on commit ad98a9b

Please sign in to comment.