Skip to content
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

feat: switch hello_world to String #314

Merged
merged 1 commit into from
Jun 27, 2024
Merged

Conversation

chadoh
Copy link
Contributor

@chadoh chadoh commented Jun 26, 2024

What

hello_world example now uses String instead of Symbol

Why

Symbols seem generally inferior?

Known limitations

Maybe we want to push newbies toward Symbol for some reason?

@dmkozh dmkozh enabled auto-merge (squash) June 26, 2024 21:01
Symbols seem generally inferior?
auto-merge was automatically disabled June 27, 2024 14:18

Head branch was pushed to by a user without write access

@dmkozh dmkozh merged commit 40f559f into stellar:main Jun 27, 2024
114 checks passed
chadoh added a commit to AhaLabs/system-test that referenced this pull request Jul 31, 2024
The system-test started failing in
stellar/stellar-cli#1500 because it finally
updated the version of `soroban-examples` to use a version that includes
stellar/soroban-examples#314. The previous
`invoke.ts` logic assumed that the variable would be a Symbol, but the
variable has been changed to a String.

I don't want to break every project that still uses `system-test` with a
stale `soroban-examples` hash, so here's what I did:

- dynamically define `contract` using `import()`, using a `@ts-ignore`
  directive because this can error if `stellar-sdk` doesn't include a
  `contract` export.
- if `contract` is there, then we don't need to know the type of the
  argument. It could be a Symbol or a String or anything else.
- non-`contract` logic path stays unchanged, assuming `Symbol`
leighmcculloch pushed a commit to stellar/system-test that referenced this pull request Jul 31, 2024
The system-test started failing in
stellar/stellar-cli#1500 because it finally
updated the version of `soroban-examples` to use a version that includes
stellar/soroban-examples#314. The previous
`invoke.ts` logic assumed that the variable would be a Symbol, but the
variable has been changed to a String.

I don't want to break every project that still uses `system-test` with a
stale `soroban-examples` hash, so here's what I did:

- dynamically define `contract` using `import()`, using a `@ts-ignore`
  directive because this can error if `stellar-sdk` doesn't include a
  `contract` export.
- if `contract` is there, then we don't need to know the type of the
  argument. It could be a Symbol or a String or anything else.
- non-`contract` logic path stays unchanged, assuming `Symbol`
chadoh added a commit to stellar/stellar-cli that referenced this pull request Aug 29, 2024
Updates `hello_world` to match the version that has been in
`soroban-examples` since stellar/soroban-examples#314
willemneal pushed a commit to stellar/stellar-cli that referenced this pull request Aug 30, 2024
Updates `hello_world` to match the version that has been in
`soroban-examples` since stellar/soroban-examples#314
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants