Skip to content

Commit

Permalink
fix ContractUpdate.codeAsCadence() bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sisyphusSmiling committed Sep 22, 2023
1 parent 93dd99b commit 4fab9c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/ContractUpdater.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ pub contract ContractUpdater {

/// Returns code as a String
pub fun codeAsCadence(): String {
return String.fromUTF8(self.code) ?? panic("Problem stringifying code!")
return String.fromUTF8(self.code.decodeHex()) ?? panic("Problem stringifying code!")
}
}

Expand Down

0 comments on commit 4fab9c8

Please sign in to comment.