Title: [Bug] Improperly encoded uint8 (enum) @ decoding constructor · Issue #196 · unpackdev/solgo · GitHub
Open Graph Title: [Bug] Improperly encoded uint8 (enum) @ decoding constructor · Issue #196 · unpackdev/solgo
X Title: [Bug] Improperly encoded uint8 (enum) @ decoding constructor · Issue #196 · unpackdev/solgo
Description: There's an edge case with advanced use of constructor arguments. Etherscan addr: https://etherscan.io/address/0x8e7e518b0481ADFaF969ED1f2B25bf553B79a677#code Constructor ABI: [{"inputs":[{"internalType":"address","name":"cvpToken_","type...
Open Graph Description: There's an edge case with advanced use of constructor arguments. Etherscan addr: https://etherscan.io/address/0x8e7e518b0481ADFaF969ED1f2B25bf553B79a677#code Constructor ABI: [{"inputs":[{"internal...
X Description: There's an edge case with advanced use of constructor arguments. Etherscan addr: https://etherscan.io/address/0x8e7e518b0481ADFaF969ED1f2B25bf553B79a677#code Constructor ABI: [{"inputs&quo...
Opengraph URL: https://github.com/unpackdev/solgo/issues/196
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug] Improperly encoded uint8 (enum) @ decoding constructor","articleBody":"There's an edge case with advanced use of constructor arguments.\r\n\r\nEtherscan addr: https://etherscan.io/address/0x8e7e518b0481ADFaF969ED1f2B25bf553B79a677#code\r\n\r\nConstructor ABI:\r\n\r\n```\r\n[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"cvpToken_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"reservoir_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"anchorPeriod_\",\"type\":\"uint256\"},{\"internalType\":\"struct UniswapConfig.TokenConfig\",\"name\":\"TokenConfig\",\"type\":\"tuple\",\"components\":[{\"internalType\":\"address\",\"name\":\"cToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"symbolHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"baseUnit\",\"type\":\"uint256\"},{\"internalType\":\"enum UniswapConfig.PriceSource\",\"name\":\"priceSource\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"fixedPrice\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"uniswapMarket\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"isUniswapReversed\",\"type\":\"bool\"}]}],\"outputs\":[],\"name\":\"\",\"type\":\"constructor\",\"stateMutability\":\"nonpayable\"}]\r\n```\r\n\r\nBasically it results back with error `failed to unpack values: abi: improperly encoded uint8 value`","author":{"url":"https://github.com/0x19","@type":"Person","name":"0x19"},"datePublished":"2024-04-05T07:52:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/196/solgo/issues/196"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0af83cb2-275e-e575-5a13-049f2540669c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B672:B8255:76FF3EF:A036017:698CCDF4 |
| html-safe-nonce | 3eba9113c8c1ad46800367d04a68c0f5dd5431fd68ce896f5e46b20587b36f66 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjcyOkI4MjU1Ojc2RkYzRUY6QTAzNjAxNzo2OThDQ0RGNCIsInZpc2l0b3JfaWQiOiI2MjMxNTk0OTU1MjEyMzc3NTg4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 00f7af1ac9cf677c0128fc1bff741e0b909aff26d881ca0c647710db9c5442b7 |
| hovercard-subject-tag | issue:2227317805 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/unpackdev/solgo/196/issue_layout |
| twitter:image | https://opengraph.githubassets.com/051a229a919ee0e8f7a54bd4112af734c1b9eb3e5e17f5adc66322d9167d6f7a/unpackdev/solgo/issues/196 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/051a229a919ee0e8f7a54bd4112af734c1b9eb3e5e17f5adc66322d9167d6f7a/unpackdev/solgo/issues/196 |
| og:image:alt | There's an edge case with advanced use of constructor arguments. Etherscan addr: https://etherscan.io/address/0x8e7e518b0481ADFaF969ED1f2B25bf553B79a677#code Constructor ABI: [{"inputs":[{"internal... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | 0x19 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 640eeb7b6ff4d8d106235d228c0c286e82592d4d2403227b5b2b4fc5832297a4 |
| turbo-cache-control | no-preview |
| go-import | github.com/unpackdev/solgo git https://github.com/unpackdev/solgo.git |
| octolytics-dimension-user_id | 132208928 |
| octolytics-dimension-user_login | unpackdev |
| octolytics-dimension-repository_id | 659887475 |
| octolytics-dimension-repository_nwo | unpackdev/solgo |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 659887475 |
| octolytics-dimension-repository_network_root_nwo | unpackdev/solgo |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3d444f0a47beeeac94cddbb51c91ab408befe8d4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width