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

algo/testnet: Wormhole name fix #1134

Merged
merged 6 commits into from
Apr 30, 2022
Merged
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
16 changes: 8 additions & 8 deletions algorand/teal/core_approve.teal
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ gtxnsa Accounts 2
txna Accounts 2
==
&&
pushint 483 // 483
pushint 506 // 506
&&
assert
bytec_3 // "currentGuardianSetIndex"
Expand Down Expand Up @@ -485,7 +485,7 @@ store 15
txn GroupIndex
intc_1 // 0
>
pushint 403 // 403
pushint 422 // 422
&&
assert
txn GroupIndex
Expand All @@ -496,7 +496,7 @@ load 10
gtxns NumAppArgs
intc_1 // 0
>
pushint 405 // 405
pushint 425 // 425
&&
assert
load 10
Expand Down Expand Up @@ -536,7 +536,7 @@ pushint 66 // 66
*
+
==
pushint 474 // 474
pushint 497 // 497
&&
assert
intc_0 // 1
Expand Down Expand Up @@ -566,7 +566,7 @@ gtxnsa Accounts 2
txna Accounts 2
==
&&
pushint 421 // 421
pushint 444 // 444
&&
assert
load 10
Expand Down Expand Up @@ -609,7 +609,7 @@ len
extract3
load 18
==
pushint 438 // 438
pushint 461 // 461
&&
assert
load 15
Expand Down Expand Up @@ -639,7 +639,7 @@ gtxnsa ApplicationArgs 3
load 16
==
&&
pushint 458 // 458
pushint 481 // 481
&&
assert
b main_l41
Expand All @@ -655,7 +655,7 @@ load 20
getbit
intc_1 // 0
==
pushint 449 // 449
pushint 472 // 472
&&
assert
load 17
Expand Down
2 changes: 2 additions & 0 deletions algorand/teal/token_approve.teal
Original file line number Diff line number Diff line change
Expand Up @@ -1514,6 +1514,8 @@ bnz main_l75
main_l70:
load 30
callsub trimbytes_13
pushbytes 0x2028576f726d686f6c6529 // " (Wormhole)"
concat
store 30
load 28
pushint 8 // 8
Expand Down
2 changes: 1 addition & 1 deletion algorand/token_bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def receiveAttest():
# Lets trim this... seems these are limited to 7 characters
Symbol.store(trim_bytes(Symbol.load())),
If (Len(Symbol.load()) > Int(7), Symbol.store(Extract(Symbol.load(), Int(0), Int(7)))),
Name.store(trim_bytes(Name.load())),
Name.store(Concat(trim_bytes(Name.load()), Bytes(" (Wormhole)"))),

# Due to constrains on some supported chains, all token
# amounts passed through the token bridge are truncated to
Expand Down