# App\_global\_get error

**URL:** <https://forum.algorand.co/t/app-global-get-error/11616>\
**Category:** Uncategorized\
**Tags:** testnet, teal, developer, smart-contracts\
**Created:** [March 7, 2024, 6:26pm UTC](https://forum.algorand.co/t/app-global-get-error/11616 "2024-03-07T18:26:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![erdifree](https://avatars.discourse-cdn.com/v4/letter/e/b782af/32.png) [@erdifree](https://forum.algorand.co/u/erdifree)\
**Post date:** [March 7, 2024, 6:26pm UTC](https://forum.algorand.co/t/app-global-get-error/11616/1 "2024-03-07T18:26:46Z")

</div>

Hello. I find myself in a very strange situation. At the moment of deploying the smart contract, passing 2 appargs, I am able to deploy successfully and read the two values in the global state. One is a unit64 and the other is an address. When I call the method that returns these values, the first unit64 is returned successfully, but the address gives me a problem like this: `ABIEncodingError("input string was not fully consumed: b'ZGIMBLRFF4QM7CMBUBUSK67LZ4TLO7LTULVX2OHVH2FQ77TE7KM5MKJQFU\\x00\\x00\\x00\\x00\\x00\\x00\\x06\\x0e'")`. I will now post the two methods in question:

deploy:  
byte “royalty\_basis”  
txna ApplicationArgs 0  
btoi  
app\_global\_put  
byte “royalty\_receiver”  
txna ApplicationArgs 1  
app\_global\_put

int 1  
return  
// get\_royalty\_receiver  
getroyaltyreceiver\_16:  
byte “royalty\_receiver”  
app\_global\_get  
int 1  
return
