Skip to content

Commit

Permalink
fix: decode URL-encoded characters
Browse files Browse the repository at this point in the history
  • Loading branch information
neutiyoo authored and Aniket-Engg committed Apr 17, 2023
1 parent 9317bd4 commit e155252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/remix-ui/workspace/src/lib/actions/workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export const loadWorkspacePreset = async (template: WorkspaceTemplate = 'remixDe
const hashed = bufferToHex(hash.keccakFromString(params.code))

path = 'contract-' + hashed.replace('0x', '').substring(0, 10) + (params.language && params.language.toLowerCase() === 'yul' ? '.yul' : '.sol')
content = atob(params.code)
content = atob(decodeURIComponent(params.code))
await workspaceProvider.set(path, content)
}
if (params.url) {
Expand Down

0 comments on commit e155252

Please sign in to comment.