Skip to content

Fix typos #3891

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions interpreter/interpreter.go
Original file line number Diff line number Diff line change
Expand Up @@ -2434,10 +2434,10 @@ func (interpreter *Interpreter) declareInterface(
)

var defaultDestroyEventConstructor FunctionValue
if defautlDestroyEvent := interpreter.Program.Elaboration.DefaultDestroyDeclaration(declaration); defautlDestroyEvent != nil {
if defaultDestroyEvent := interpreter.Program.Elaboration.DefaultDestroyDeclaration(declaration); defaultDestroyEvent != nil {
var nestedVariable Variable
lexicalScope, nestedVariable = interpreter.declareCompositeValue(
defautlDestroyEvent,
defaultDestroyEvent,
lexicalScope,
)
defaultDestroyEventConstructor = nestedVariable.GetValue(interpreter).(FunctionValue)
Expand Down
8 changes: 4 additions & 4 deletions runtime/nft_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ access(all) contract interface NonFungibleToken {
access(all) fun borrowNFT(id: UInt64): &{NFT}
}

// Requirement for the the concrete resource type
// Requirement for the concrete resource type
// to be declared in the implementing contract
//
access(all) resource interface Collection: Provider, Receiver, CollectionPublic {
Expand Down Expand Up @@ -350,7 +350,7 @@ access(all) contract TopShot: NonFungibleToken {
pre {
TopShot.playDatas[playID] != nil: "Cannot add the Play to Set: Play doesn't exist"
!self.locked: "Cannot add the play to the Set after the set has been locked"
self.numberMintedPerPlay[playID] == nil: "The play has already beed added to the set"
self.numberMintedPerPlay[playID] == nil: "The play has already been added to the set"
}

// Add the play to the array of plays
Expand Down Expand Up @@ -615,7 +615,7 @@ access(all) contract TopShot: NonFungibleToken {
self.ownedNFTs <- {}
}

// withdraw removes an Moment from the collection and moves it to the caller
// withdraw removes a Moment from the collection and moves it to the caller
access(all) fun withdraw(withdrawID: UInt64): @{NonFungibleToken.NFT} {
let token <- self.ownedNFTs.remove(key: withdrawID)
?? panic("Cannot withdraw: Moment does not exist in the collection")
Expand Down Expand Up @@ -828,7 +828,7 @@ access(all) contract TopShot: NonFungibleToken {
}

// isSetLocked returns a boolean that indicates if a set
// is locked. If an set is locked,
// is locked. If a set is locked,
// new plays can no longer be added to it,
// but moments can still be minted from plays
// that are currently in it.
Expand Down
2 changes: 1 addition & 1 deletion sema/deployment_result.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ struct DeploymentResult {

/// The deployed contract.
///
/// If the the deployment was unsuccessfull, this will be nil.
/// If the deployment was unsuccessful, this will be nil.
///
access(all)
let deployedContract: DeployedContract?
Expand Down
2 changes: 1 addition & 1 deletion sema/deployment_result.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sema/interface_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1709,7 +1709,7 @@ func TestCheckInvalidMultipleInterfaceDefaultImplementation(t *testing.T) {
})
}

func TestCheckMultipleInterfaceDefaultImplementationWhenOverriden(t *testing.T) {
func TestCheckMultipleInterfaceDefaultImplementationWhenOverridden(t *testing.T) {

t.Parallel()

Expand Down
Loading