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

Add Sapphire on testnet #279

Merged
merged 4 commits into from
Aug 8, 2022
Merged

Add Sapphire on testnet #279

merged 4 commits into from
Aug 8, 2022

Conversation

lukaw3d
Copy link
Member

@lukaw3d lukaw3d commented Jul 20, 2022

No description provided.

@lukaw3d lukaw3d force-pushed the lw/sapphire-testnet branch 2 times, most recently from 01ea0e9 to c40040a Compare July 28, 2022 02:00
@lukaw3d lukaw3d marked this pull request as ready for review August 4, 2022 15:17
@lukaw3d lukaw3d force-pushed the lw/sapphire-testnet branch 2 times, most recently from fa80afa to c57582d Compare August 5, 2022 19:09
@@ -808,7 +808,7 @@ class APIService {
let u8Hash = await oasis.hash.hash(oasis.misc.toCBOR(txWrapper.unverifiedTransaction))
let hash = oasis.misc.toHex(u8Hash)
let config = getRuntimeConfig(params.runtimeId)
if (hash && config.accountType === RUNTIME_ACCOUNT_TYPE.EVM) {
Copy link
Contributor

@buberdds buberdds Aug 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What was wrong with this approach?

Also does that PR need to address another use cases like
let isEmerald = runtimeConfig.accountType === RUNTIME_ACCOUNT_TYPE.EVM where now we have multiple EVMc paratimes?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean with if (hash && config.accountType === RUNTIME_ACCOUNT_TYPE.EVM && config.runtimeName === "Emerald") { approach? There's no difference

I think all other conditions are okay. (but isEmerald is a bad name - and there's already isEvm too :/ )

@lukaw3d lukaw3d merged commit cd9af6a into master Aug 8, 2022
@lukaw3d lukaw3d deleted the lw/sapphire-testnet branch August 8, 2022 21:49
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